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

Side by Side Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 1172093002: Implement HttpUserAgentSettings delegate for Android WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.h ('k') | android_webview/native/aw_contents.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/browser/browser_view_renderer.h" 8 #include "android_webview/browser/browser_view_renderer.h"
9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" 9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
10 #include "android_webview/common/aw_switches.h" 10 #include "android_webview/common/aw_switches.h"
11 #include "android_webview/crash_reporter/aw_microdump_crash_reporter.h" 11 #include "android_webview/crash_reporter/aw_microdump_crash_reporter.h"
12 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" 12 #include "android_webview/lib/aw_browser_dependency_factory_impl.h"
13 #include "android_webview/native/aw_locale_manager_impl.h"
13 #include "android_webview/native/aw_media_url_interceptor.h" 14 #include "android_webview/native/aw_media_url_interceptor.h"
14 #include "android_webview/native/aw_message_port_service_impl.h" 15 #include "android_webview/native/aw_message_port_service_impl.h"
15 #include "android_webview/native/aw_quota_manager_bridge_impl.h" 16 #include "android_webview/native/aw_quota_manager_bridge_impl.h"
16 #include "android_webview/native/aw_web_contents_view_delegate.h" 17 #include "android_webview/native/aw_web_contents_view_delegate.h"
17 #include "android_webview/native/aw_web_preferences_populater_impl.h" 18 #include "android_webview/native/aw_web_preferences_populater_impl.h"
18 #include "android_webview/renderer/aw_content_renderer_client.h" 19 #include "android_webview/renderer/aw_content_renderer_client.h"
19 #include "base/android/apk_assets.h" 20 #include "base/android/apk_assets.h"
20 #include "base/command_line.h" 21 #include "base/command_line.h"
21 #include "base/cpu.h" 22 #include "base/cpu.h"
22 #include "base/i18n/icu_util.h" 23 #include "base/i18n/icu_util.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 193 }
193 194
194 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() { 195 AwWebPreferencesPopulater* AwMainDelegate::CreateWebPreferencesPopulater() {
195 return new AwWebPreferencesPopulaterImpl(); 196 return new AwWebPreferencesPopulaterImpl();
196 } 197 }
197 198
198 AwMessagePortService* AwMainDelegate::CreateAwMessagePortService() { 199 AwMessagePortService* AwMainDelegate::CreateAwMessagePortService() {
199 return new AwMessagePortServiceImpl(); 200 return new AwMessagePortServiceImpl();
200 } 201 }
201 202
203 AwLocaleManager* AwMainDelegate::CreateAwLocaleManager() {
204 return new AwLocaleManagerImpl();
205 }
206
202 #if defined(VIDEO_HOLE) 207 #if defined(VIDEO_HOLE)
203 content::ExternalVideoSurfaceContainer* 208 content::ExternalVideoSurfaceContainer*
204 AwMainDelegate::CreateExternalVideoSurfaceContainer( 209 AwMainDelegate::CreateExternalVideoSurfaceContainer(
205 content::WebContents* web_contents) { 210 content::WebContents* web_contents) {
206 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create( 211 return external_video_surface::ExternalVideoSurfaceContainerImpl::Create(
207 web_contents); 212 web_contents);
208 } 213 }
209 #endif 214 #endif
210 215
211 } // namespace android_webview 216 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.h ('k') | android_webview/native/aw_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698