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

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

Issue 1039543003: [DevTools] Move network protocol handler to RenderFrameHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android_webview compile Created 5 years, 9 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
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 12 matching lines...) Expand all
23 #include "base/android/locale_utils.h" 23 #include "base/android/locale_utils.h"
24 #include "base/base_paths_android.h" 24 #include "base/base_paths_android.h"
25 #include "base/path_service.h" 25 #include "base/path_service.h"
26 #include "components/cdm/browser/cdm_message_filter_android.h" 26 #include "components/cdm/browser/cdm_message_filter_android.h"
27 #include "content/public/browser/access_token_store.h" 27 #include "content/public/browser/access_token_store.h"
28 #include "content/public/browser/browser_message_filter.h" 28 #include "content/public/browser/browser_message_filter.h"
29 #include "content/public/browser/browser_thread.h" 29 #include "content/public/browser/browser_thread.h"
30 #include "content/public/browser/child_process_security_policy.h" 30 #include "content/public/browser/child_process_security_policy.h"
31 #include "content/public/browser/client_certificate_delegate.h" 31 #include "content/public/browser/client_certificate_delegate.h"
32 #include "content/public/browser/permission_type.h" 32 #include "content/public/browser/permission_type.h"
33 #include "content/public/browser/render_frame_host.h"
33 #include "content/public/browser/render_process_host.h" 34 #include "content/public/browser/render_process_host.h"
34 #include "content/public/browser/render_view_host.h" 35 #include "content/public/browser/render_view_host.h"
35 #include "content/public/browser/web_contents.h" 36 #include "content/public/browser/web_contents.h"
36 #include "content/public/common/url_constants.h" 37 #include "content/public/common/url_constants.h"
37 #include "content/public/common/web_preferences.h" 38 #include "content/public/common/web_preferences.h"
38 #include "net/android/network_library.h" 39 #include "net/android/network_library.h"
39 #include "net/ssl/ssl_cert_request_info.h" 40 #include "net/ssl/ssl_cert_request_info.h"
40 #include "net/ssl/ssl_info.h" 41 #include "net/ssl/ssl_info.h"
41 #include "ui/base/resource/resource_bundle.h" 42 #include "ui/base/resource/resource_bundle.h"
42 #include "ui/resources/grit/ui_resources.h" 43 #include "ui/resources/grit/ui_resources.h"
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 content::AccessTokenStore* AwContentBrowserClient::CreateAccessTokenStore() { 495 content::AccessTokenStore* AwContentBrowserClient::CreateAccessTokenStore() {
495 return new AwAccessTokenStore(); 496 return new AwAccessTokenStore();
496 } 497 }
497 498
498 bool AwContentBrowserClient::IsFastShutdownPossible() { 499 bool AwContentBrowserClient::IsFastShutdownPossible() {
499 NOTREACHED() << "Android WebView is single process, so IsFastShutdownPossible" 500 NOTREACHED() << "Android WebView is single process, so IsFastShutdownPossible"
500 << " should never be called"; 501 << " should never be called";
501 return false; 502 return false;
502 } 503 }
503 504
504 void AwContentBrowserClient::ClearCache(content::RenderViewHost* rvh) { 505 void AwContentBrowserClient::ClearCache(content::RenderFrameHost* rfh) {
505 RemoveHttpDiskCache(rvh->GetProcess()->GetBrowserContext(), 506 RemoveHttpDiskCache(rfh->GetProcess()->GetBrowserContext(),
506 rvh->GetProcess()->GetID()); 507 rfh->GetProcess()->GetID());
507 } 508 }
508 509
509 void AwContentBrowserClient::ClearCookies(content::RenderViewHost* rvh) { 510 void AwContentBrowserClient::ClearCookies(content::RenderFrameHost* rfh) {
510 // TODO(boliu): Implement. 511 // TODO(boliu): Implement.
511 NOTIMPLEMENTED(); 512 NOTIMPLEMENTED();
512 } 513 }
513 514
514 base::FilePath AwContentBrowserClient::GetDefaultDownloadDirectory() { 515 base::FilePath AwContentBrowserClient::GetDefaultDownloadDirectory() {
515 // Android WebView does not currently use the Chromium downloads system. 516 // Android WebView does not currently use the Chromium downloads system.
516 // Download requests are cancelled immedately when recognized; see 517 // Download requests are cancelled immedately when recognized; see
517 // AwResourceDispatcherHost::CreateResourceHandlerForDownload. However the 518 // AwResourceDispatcherHost::CreateResourceHandlerForDownload. However the
518 // download system still tries to start up and calls this before recognizing 519 // download system still tries to start up and calls this before recognizing
519 // the request has been cancelled. 520 // the request has been cancelled.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); 558 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents);
558 } 559 }
559 #endif 560 #endif
560 561
561 content::DevToolsManagerDelegate* 562 content::DevToolsManagerDelegate*
562 AwContentBrowserClient::GetDevToolsManagerDelegate() { 563 AwContentBrowserClient::GetDevToolsManagerDelegate() {
563 return new AwDevToolsManagerDelegate(); 564 return new AwDevToolsManagerDelegate();
564 } 565 }
565 566
566 } // namespace android_webview 567 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698