summaryrefslogtreecommitdiffstats
path: root/android_webview/common
diff options
context:
space:
mode:
authormkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-08 18:15:24 +0000
committermkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-08 18:15:24 +0000
commit0e7a214f5d39b5f012f9d55ea2e095fbd566e403 (patch)
treef66660b8a9f2d6296bd145a646e8b0f2d641b753 /android_webview/common
parent8ce5660b45db680334b1e818a5d3b73728e87a0f (diff)
downloadchromium_src-0e7a214f5d39b5f012f9d55ea2e095fbd566e403.zip
chromium_src-0e7a214f5d39b5f012f9d55ea2e095fbd566e403.tar.gz
chromium_src-0e7a214f5d39b5f012f9d55ea2e095fbd566e403.tar.bz2
[android_webview] Add the content scheme to the list of standard schemes.
BUG=159832 Review URL: https://chromiumcodereview.appspot.com/11275195 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166702 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/common')
-rw-r--r--android_webview/common/aw_content_client.cc8
-rw-r--r--android_webview/common/aw_content_client.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/android_webview/common/aw_content_client.cc b/android_webview/common/aw_content_client.cc
index a7b467d..8e90a73 100644
--- a/android_webview/common/aw_content_client.cc
+++ b/android_webview/common/aw_content_client.cc
@@ -4,6 +4,7 @@
#include "android_webview/common/aw_content_client.h"
+#include "android_webview/common/url_constants.h"
#include "base/basictypes.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -11,6 +12,13 @@
namespace android_webview {
+void AwContentClient::AddAdditionalSchemes(
+ std::vector<std::string>* standard_schemes,
+ std::vector<std::string>* savable_schemes) {
+ // In the future we may need to expand this list, see BUG=159832.
+ standard_schemes->push_back(kContentScheme);
+}
+
std::string AwContentClient::GetProduct() const {
// "Version/4.0" had been hardcoded in the legacy WebView.
return std::string("Version/4.0");
diff --git a/android_webview/common/aw_content_client.h b/android_webview/common/aw_content_client.h
index e0b5c24..ea6fa04 100644
--- a/android_webview/common/aw_content_client.h
+++ b/android_webview/common/aw_content_client.h
@@ -14,6 +14,9 @@ namespace android_webview {
class AwContentClient : public content::ContentClient {
public:
// ContentClient implementation.
+ virtual void AddAdditionalSchemes(
+ std::vector<std::string>* standard_schemes,
+ std::vector<std::string>* savable_schemes) OVERRIDE;
virtual std::string GetProduct() const OVERRIDE;
virtual std::string GetUserAgent() const OVERRIDE;
virtual string16 GetLocalizedString(int message_id) const OVERRIDE;