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

Side by Side Diff: android_webview/browser/aw_content_browser_client.cc

Issue 357203003: Move webpreferences.* from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android fix - webview() -> web_view Created 6 years, 5 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/browser/aw_content_browser_client.h" 5 #include "android_webview/browser/aw_content_browser_client.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_browser_main_parts.h" 8 #include "android_webview/browser/aw_browser_main_parts.h"
9 #include "android_webview/browser/aw_browser_permission_request_delegate.h" 9 #include "android_webview/browser/aw_browser_permission_request_delegate.h"
10 #include "android_webview/browser/aw_contents_client_bridge_base.h" 10 #include "android_webview/browser/aw_contents_client_bridge_base.h"
(...skipping 10 matching lines...) Expand all
21 #include "base/path_service.h" 21 #include "base/path_service.h"
22 #include "components/cdm/browser/cdm_message_filter_android.h" 22 #include "components/cdm/browser/cdm_message_filter_android.h"
23 #include "content/public/browser/access_token_store.h" 23 #include "content/public/browser/access_token_store.h"
24 #include "content/public/browser/browser_message_filter.h" 24 #include "content/public/browser/browser_message_filter.h"
25 #include "content/public/browser/browser_thread.h" 25 #include "content/public/browser/browser_thread.h"
26 #include "content/public/browser/child_process_security_policy.h" 26 #include "content/public/browser/child_process_security_policy.h"
27 #include "content/public/browser/render_process_host.h" 27 #include "content/public/browser/render_process_host.h"
28 #include "content/public/browser/render_view_host.h" 28 #include "content/public/browser/render_view_host.h"
29 #include "content/public/browser/web_contents.h" 29 #include "content/public/browser/web_contents.h"
30 #include "content/public/common/url_constants.h" 30 #include "content/public/common/url_constants.h"
31 #include "content/public/common/web_preferences.h"
31 #include "grit/ui_resources.h" 32 #include "grit/ui_resources.h"
32 #include "net/android/network_library.h" 33 #include "net/android/network_library.h"
33 #include "net/ssl/ssl_cert_request_info.h" 34 #include "net/ssl/ssl_cert_request_info.h"
34 #include "net/ssl/ssl_info.h" 35 #include "net/ssl/ssl_info.h"
35 #include "ui/base/l10n/l10n_util_android.h" 36 #include "ui/base/l10n/l10n_util_android.h"
36 #include "ui/base/resource/resource_bundle.h" 37 #include "ui/base/resource/resource_bundle.h"
37 #include "webkit/common/webpreferences.h"
38 38
39 using content::BrowserThread; 39 using content::BrowserThread;
40 using content::ResourceType; 40 using content::ResourceType;
41 41
42 namespace android_webview { 42 namespace android_webview {
43 namespace { 43 namespace {
44 44
45 // TODO(sgurun) move this to its own file. 45 // TODO(sgurun) move this to its own file.
46 // This class filters out incoming aw_contents related IPC messages for the 46 // This class filters out incoming aw_contents related IPC messages for the
47 // renderer process on the IPC thread. 47 // renderer process on the IPC thread.
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 566
567 bool AwContentBrowserClient::AllowPepperSocketAPI( 567 bool AwContentBrowserClient::AllowPepperSocketAPI(
568 content::BrowserContext* browser_context, 568 content::BrowserContext* browser_context,
569 const GURL& url, 569 const GURL& url,
570 bool private_api, 570 bool private_api,
571 const content::SocketPermissionRequest* params) { 571 const content::SocketPermissionRequest* params) {
572 NOTREACHED() << "Android WebView does not support plugins"; 572 NOTREACHED() << "Android WebView does not support plugins";
573 return false; 573 return false;
574 } 574 }
575 575
576 void AwContentBrowserClient::OverrideWebkitPrefs(content::RenderViewHost* rvh, 576 void AwContentBrowserClient::OverrideWebkitPrefs(
577 const GURL& url, 577 content::RenderViewHost* rvh,
578 WebPreferences* web_prefs) { 578 const GURL& url,
579 content::WebPreferences* web_prefs) {
579 if (!preferences_populater_.get()) { 580 if (!preferences_populater_.get()) {
580 preferences_populater_ = make_scoped_ptr(native_factory_-> 581 preferences_populater_ = make_scoped_ptr(native_factory_->
581 CreateWebPreferencesPopulater()); 582 CreateWebPreferencesPopulater());
582 } 583 }
583 preferences_populater_->PopulateFor( 584 preferences_populater_->PopulateFor(
584 content::WebContents::FromRenderViewHost(rvh), web_prefs); 585 content::WebContents::FromRenderViewHost(rvh), web_prefs);
585 } 586 }
586 587
587 #if defined(VIDEO_HOLE) 588 #if defined(VIDEO_HOLE)
588 content::ExternalVideoSurfaceContainer* 589 content::ExternalVideoSurfaceContainer*
589 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 590 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
590 content::WebContents* web_contents) { 591 content::WebContents* web_contents) {
591 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); 592 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents);
592 } 593 }
593 #endif 594 #endif
594 595
595 } // namespace android_webview 596 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | android_webview/browser/aw_web_preferences_populater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698