OLD | NEW |
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/browser/gpu_memory_buffer_factory_impl.h" | 8 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" |
9 #include "android_webview/browser/in_process_view_renderer.h" | 9 #include "android_webview/browser/in_process_view_renderer.h" |
10 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" | 10 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" |
11 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" | 11 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" |
12 #include "android_webview/native/aw_geolocation_permission_context.h" | 12 #include "android_webview/native/aw_geolocation_permission_context.h" |
13 #include "android_webview/native/aw_quota_manager_bridge_impl.h" | 13 #include "android_webview/native/aw_quota_manager_bridge_impl.h" |
14 #include "android_webview/native/aw_web_contents_view_delegate.h" | 14 #include "android_webview/native/aw_web_contents_view_delegate.h" |
| 15 #include "android_webview/native/aw_web_preferences_populater_impl.h" |
15 #include "android_webview/renderer/aw_content_renderer_client.h" | 16 #include "android_webview/renderer/aw_content_renderer_client.h" |
16 #include "base/command_line.h" | 17 #include "base/command_line.h" |
17 #include "base/lazy_instance.h" | 18 #include "base/lazy_instance.h" |
18 #include "base/logging.h" | 19 #include "base/logging.h" |
19 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
20 #include "base/threading/thread_restrictions.h" | 21 #include "base/threading/thread_restrictions.h" |
21 #include "cc/base/switches.h" | 22 #include "cc/base/switches.h" |
22 #include "content/public/browser/browser_main_runner.h" | 23 #include "content/public/browser/browser_main_runner.h" |
23 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
24 #include "content/public/common/content_switches.h" | 25 #include "content/public/common/content_switches.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 AwMainDelegate::CreateGeolocationPermission( | 135 AwMainDelegate::CreateGeolocationPermission( |
135 AwBrowserContext* browser_context) { | 136 AwBrowserContext* browser_context) { |
136 return AwGeolocationPermissionContext::Create(browser_context); | 137 return AwGeolocationPermissionContext::Create(browser_context); |
137 } | 138 } |
138 | 139 |
139 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( | 140 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( |
140 content::WebContents* web_contents) { | 141 content::WebContents* web_contents) { |
141 return AwWebContentsViewDelegate::Create(web_contents); | 142 return AwWebContentsViewDelegate::Create(web_contents); |
142 } | 143 } |
143 | 144 |
| 145 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { |
| 146 return new AwWebPreferencesPopulaterImpl(); |
| 147 } |
| 148 |
144 } // namespace android_webview | 149 } // namespace android_webview |
OLD | NEW |