Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2022)

Unified Diff: android_webview/common/aw_content_client.cc

Issue 2623353002: Share schemes needed for mixed content checking between the browser and renderer. (Closed)
Patch Set: remove unused public methods Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/common/aw_content_client.h ('k') | android_webview/renderer/aw_content_renderer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/common/aw_content_client.cc
diff --git a/android_webview/common/aw_content_client.cc b/android_webview/common/aw_content_client.cc
index 5f366e8909abea2b3ccd5825b9c678ea5727812b..6acfe16bc6d622dce8793bda49dc01b64515ff6a 100644
--- a/android_webview/common/aw_content_client.cc
+++ b/android_webview/common/aw_content_client.cc
@@ -7,6 +7,7 @@
#include "android_webview/common/aw_media_client_android.h"
#include "android_webview/common/aw_resource.h"
#include "android_webview/common/aw_version_info_values.h"
+#include "android_webview/common/url_constants.h"
#include "base/command_line.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/user_agent.h"
@@ -37,6 +38,12 @@ std::string GetExtraOSUserAgentInfo() {
return "; wv";
}
+void AwContentClient::AddAdditionalSchemes(Schemes* schemes) {
+ schemes->local_schemes.push_back(url::kContentScheme);
+ schemes->secure_schemes.push_back(
+ android_webview::kAndroidWebViewVideoPosterScheme);
+}
+
std::string AwContentClient::GetProduct() const {
return android_webview::GetProduct();
}
« no previous file with comments | « android_webview/common/aw_content_client.h ('k') | android_webview/renderer/aw_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698