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