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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "android_webview/lib/main/aw_main_delegate.h" 5 #include "android_webview/lib/main/aw_main_delegate.h"
6 6
7 #include "android_webview/browser/aw_content_browser_client.h" 7 #include "android_webview/browser/aw_content_browser_client.h"
8 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" 8 #include "android_webview/lib/aw_browser_dependency_factory_impl.h"
9 #include "android_webview/native/aw_geolocation_permission_context.h" 9 #include "android_webview/native/aw_geolocation_permission_context.h"
10 #include "android_webview/native/aw_quota_manager_bridge.h"
10 #include "android_webview/native/aw_web_contents_view_delegate.h" 11 #include "android_webview/native/aw_web_contents_view_delegate.h"
11 #include "android_webview/renderer/aw_content_renderer_client.h" 12 #include "android_webview/renderer/aw_content_renderer_client.h"
12 #include "base/command_line.h" 13 #include "base/command_line.h"
13 #include "base/logging.h" 14 #include "base/logging.h"
14 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
15 #include "cc/switches.h" 16 #include "cc/switches.h"
16 #include "content/public/browser/browser_main_runner.h" 17 #include "content/public/browser/browser_main_runner.h"
17 #include "content/public/common/content_switches.h" 18 #include "content/public/common/content_switches.h"
18 19
19 namespace android_webview { 20 namespace android_webview {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 72 }
72 73
73 void AwMainDelegate::ProcessExiting(const std::string& process_type) { 74 void AwMainDelegate::ProcessExiting(const std::string& process_type) {
74 // TODO(torne): Clean up resources when we handle them. 75 // TODO(torne): Clean up resources when we handle them.
75 76
76 logging::CloseLogFile(); 77 logging::CloseLogFile();
77 } 78 }
78 79
79 content::ContentBrowserClient* 80 content::ContentBrowserClient*
80 AwMainDelegate::CreateContentBrowserClient() { 81 AwMainDelegate::CreateContentBrowserClient() {
81 content_browser_client_.reset( 82 content_browser_client_.reset(new AwContentBrowserClient(this));
82 new AwContentBrowserClient(
83 &AwWebContentsViewDelegate::Create,
84 &AwGeolocationPermissionContext::Create));
85
86 return content_browser_client_.get(); 83 return content_browser_client_.get();
87 } 84 }
88 85
89 content::ContentRendererClient* 86 content::ContentRendererClient*
90 AwMainDelegate::CreateContentRendererClient() { 87 AwMainDelegate::CreateContentRendererClient() {
91 content_renderer_client_.reset(new AwContentRendererClient()); 88 content_renderer_client_.reset(new AwContentRendererClient());
92 return content_renderer_client_.get(); 89 return content_renderer_client_.get();
93 } 90 }
94 91
92 AwQuotaManagerBridge* AwMainDelegate::CreateAwQuotaManagerBridge(
93 AwBrowserContext* browser_context) {
94 return AwQuotaManagerBridge::Create(browser_context);
95 }
96
97 content::GeolocationPermissionContext*
98 AwMainDelegate::CreateGeolocationPermission() {
99 return AwGeolocationPermissionContext::Create();
100 }
101
102 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate(
103 content::WebContents* web_contents) {
104 return AwWebContentsViewDelegate::Create(web_contents);
105 }
106
95 } // namespace android_webview 107 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698