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

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

Issue 2172933003: Remove unused ContentBrowserClient::IsFastShutdownPossible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 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
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 <utility> 7 #include <utility>
8 8
9 #include "android_webview/browser/aw_browser_context.h" 9 #include "android_webview/browser/aw_browser_context.h"
10 #include "android_webview/browser/aw_browser_main_parts.h" 10 #include "android_webview/browser/aw_browser_main_parts.h"
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 } 401 }
402 402
403 void AwContentBrowserClient::ResourceDispatcherHostCreated() { 403 void AwContentBrowserClient::ResourceDispatcherHostCreated() {
404 AwResourceDispatcherHostDelegate::ResourceDispatcherHostCreated(); 404 AwResourceDispatcherHostDelegate::ResourceDispatcherHostCreated();
405 } 405 }
406 406
407 net::NetLog* AwContentBrowserClient::GetNetLog() { 407 net::NetLog* AwContentBrowserClient::GetNetLog() {
408 return browser_context_->GetAwURLRequestContext()->GetNetLog(); 408 return browser_context_->GetAwURLRequestContext()->GetNetLog();
409 } 409 }
410 410
411 bool AwContentBrowserClient::IsFastShutdownPossible() {
412 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
413 switches::kSingleProcess)) {
414 NOTREACHED()
415 << "Android WebView is single process, so IsFastShutdownPossible"
416 << " should never be called";
417 return false;
418 } else {
419 return true;
420 }
421 }
422
423 void AwContentBrowserClient::ClearCache(content::RenderFrameHost* rfh) { 411 void AwContentBrowserClient::ClearCache(content::RenderFrameHost* rfh) {
424 RemoveHttpDiskCache(rfh->GetProcess()); 412 RemoveHttpDiskCache(rfh->GetProcess());
425 } 413 }
426 414
427 void AwContentBrowserClient::ClearCookies(content::RenderFrameHost* rfh) { 415 void AwContentBrowserClient::ClearCookies(content::RenderFrameHost* rfh) {
428 // TODO(boliu): Implement. 416 // TODO(boliu): Implement.
429 NOTIMPLEMENTED(); 417 NOTIMPLEMENTED();
430 } 418 }
431 419
432 base::FilePath AwContentBrowserClient::GetDefaultDownloadDirectory() { 420 base::FilePath AwContentBrowserClient::GetDefaultDownloadDirectory() {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 505
518 #if defined(VIDEO_HOLE) 506 #if defined(VIDEO_HOLE)
519 content::ExternalVideoSurfaceContainer* 507 content::ExternalVideoSurfaceContainer*
520 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 508 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
521 content::WebContents* web_contents) { 509 content::WebContents* web_contents) {
522 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); 510 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents);
523 } 511 }
524 #endif 512 #endif
525 513
526 } // namespace android_webview 514 } // 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