2010-10-03 23:04:50 +02:00
|
|
|
// Copyright (c) 2010 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
#ifndef _CEFCLIENT_STRING_UTIL_H
|
|
|
|
#define _CEFCLIENT_STRING_UTIL_H
|
2010-10-03 23:04:50 +02:00
|
|
|
|
|
|
|
#include "include/cef.h"
|
|
|
|
|
|
|
|
// Dump the contents of the request into a string.
|
2010-11-22 18:49:46 +01:00
|
|
|
void DumpRequestContents(CefRefPtr<CefRequest> request, std::string& str);
|
2010-10-03 23:04:50 +02:00
|
|
|
|
|
|
|
// Replace all instances of |from| with |to| in |str|.
|
2010-11-22 18:49:46 +01:00
|
|
|
std::string StringReplace(const std::string& str, const std::string& from,
|
|
|
|
const std::string& to);
|
2010-10-28 22:38:27 +02:00
|
|
|
|
|
|
|
#endif // _CEFCLIENT_STRING_UTIL_H
|