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

Unified Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 12253057: Implement WebStorage API methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits Created 7 years, 10 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
Index: android_webview/lib/main/aw_main_delegate.cc
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index 2a8954fc0524c584175f779900c20158c8be490a..aa220ea8cb0973dfdd8099c33b9340eb6d34f780 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -7,6 +7,7 @@
#include "android_webview/browser/aw_content_browser_client.h"
#include "android_webview/lib/aw_browser_dependency_factory_impl.h"
#include "android_webview/native/aw_geolocation_permission_context.h"
+#include "android_webview/native/aw_quota_manager_bridge_impl.h"
#include "android_webview/native/aw_web_contents_view_delegate.h"
#include "android_webview/renderer/aw_content_renderer_client.h"
#include "base/command_line.h"
@@ -69,11 +70,7 @@ void AwMainDelegate::ProcessExiting(const std::string& process_type) {
content::ContentBrowserClient*
AwMainDelegate::CreateContentBrowserClient() {
- content_browser_client_.reset(
- new AwContentBrowserClient(
- &AwWebContentsViewDelegate::Create,
- &AwGeolocationPermissionContext::Create));
-
+ content_browser_client_.reset(new AwContentBrowserClient(this));
return content_browser_client_.get();
}
@@ -83,4 +80,20 @@ content::ContentRendererClient*
return content_renderer_client_.get();
}
+AwQuotaManagerBridge* AwMainDelegate::CreateAwQuotaManagerBridge(
+ AwBrowserContext* browser_context) {
+ return new AwQuotaManagerBridgeImpl(browser_context);
+}
+
+content::GeolocationPermissionContext*
+ AwMainDelegate::CreateGeolocationPermission(
+ AwBrowserContext* browser_context) {
+ return AwGeolocationPermissionContext::Create(browser_context);
+}
+
+content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate(
+ content::WebContents* web_contents) {
+ return AwWebContentsViewDelegate::Create(web_contents);
+}
+
} // namespace android_webview
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.h ('k') | android_webview/native/android_webview_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698