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/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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 content::AccessTokenStore* AwContentBrowserClient::CreateAccessTokenStore() { | 521 content::AccessTokenStore* AwContentBrowserClient::CreateAccessTokenStore() { |
522 return new AwAccessTokenStore(); | 522 return new AwAccessTokenStore(); |
523 } | 523 } |
524 | 524 |
525 bool AwContentBrowserClient::IsFastShutdownPossible() { | 525 bool AwContentBrowserClient::IsFastShutdownPossible() { |
526 NOTREACHED() << "Android WebView is single process, so IsFastShutdownPossible" | 526 NOTREACHED() << "Android WebView is single process, so IsFastShutdownPossible" |
527 << " should never be called"; | 527 << " should never be called"; |
528 return false; | 528 return false; |
529 } | 529 } |
530 | 530 |
531 void AwContentBrowserClient::UpdateInspectorSetting( | |
532 content::RenderViewHost* rvh, | |
533 const std::string& key, | |
534 const std::string& value) { | |
535 // TODO(boliu): Implement persisting inspector settings. | |
536 NOTIMPLEMENTED(); | |
537 } | |
538 | |
539 void AwContentBrowserClient::ClearCache(content::RenderViewHost* rvh) { | 531 void AwContentBrowserClient::ClearCache(content::RenderViewHost* rvh) { |
540 RemoveHttpDiskCache(rvh->GetProcess()->GetBrowserContext(), | 532 RemoveHttpDiskCache(rvh->GetProcess()->GetBrowserContext(), |
541 rvh->GetProcess()->GetID()); | 533 rvh->GetProcess()->GetID()); |
542 } | 534 } |
543 | 535 |
544 void AwContentBrowserClient::ClearCookies(content::RenderViewHost* rvh) { | 536 void AwContentBrowserClient::ClearCookies(content::RenderViewHost* rvh) { |
545 // TODO(boliu): Implement. | 537 // TODO(boliu): Implement. |
546 NOTIMPLEMENTED(); | 538 NOTIMPLEMENTED(); |
547 } | 539 } |
548 | 540 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 | 580 |
589 #if defined(VIDEO_HOLE) | 581 #if defined(VIDEO_HOLE) |
590 content::ExternalVideoSurfaceContainer* | 582 content::ExternalVideoSurfaceContainer* |
591 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 583 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
592 content::WebContents* web_contents) { | 584 content::WebContents* web_contents) { |
593 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); | 585 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); |
594 } | 586 } |
595 #endif | 587 #endif |
596 | 588 |
597 } // namespace android_webview | 589 } // namespace android_webview |
OLD | NEW |