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_contents_client_bridge_base.h" | 9 #include "android_webview/browser/aw_contents_client_bridge_base.h" |
10 #include "android_webview/browser/aw_contents_io_thread_client.h" | 10 #include "android_webview/browser/aw_contents_io_thread_client.h" |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 245 |
246 std::string AwContentBrowserClient::GetApplicationLocale() { | 246 std::string AwContentBrowserClient::GetApplicationLocale() { |
247 return l10n_util::GetDefaultLocale(); | 247 return l10n_util::GetDefaultLocale(); |
248 } | 248 } |
249 | 249 |
250 std::string AwContentBrowserClient::GetAcceptLangs( | 250 std::string AwContentBrowserClient::GetAcceptLangs( |
251 content::BrowserContext* context) { | 251 content::BrowserContext* context) { |
252 return GetAcceptLangsImpl(); | 252 return GetAcceptLangsImpl(); |
253 } | 253 } |
254 | 254 |
255 gfx::ImageSkia* AwContentBrowserClient::GetDefaultFavicon() { | 255 const gfx::ImageSkia* AwContentBrowserClient::GetDefaultFavicon() { |
256 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 256 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
257 // TODO(boliu): Bundle our own default favicon? | 257 // TODO(boliu): Bundle our own default favicon? |
258 return rb.GetImageSkiaNamed(IDR_DEFAULT_FAVICON); | 258 return rb.GetImageSkiaNamed(IDR_DEFAULT_FAVICON); |
259 } | 259 } |
260 | 260 |
261 bool AwContentBrowserClient::AllowAppCache(const GURL& manifest_url, | 261 bool AwContentBrowserClient::AllowAppCache(const GURL& manifest_url, |
262 const GURL& first_party, | 262 const GURL& first_party, |
263 content::ResourceContext* context) { | 263 content::ResourceContext* context) { |
264 // WebView doesn't have a per-site policy for locally stored data, | 264 // WebView doesn't have a per-site policy for locally stored data, |
265 // instead AppCache can be disabled for individual WebViews. | 265 // instead AppCache can be disabled for individual WebViews. |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 | 499 |
500 #if defined(VIDEO_HOLE) | 500 #if defined(VIDEO_HOLE) |
501 content::ExternalVideoSurfaceContainer* | 501 content::ExternalVideoSurfaceContainer* |
502 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 502 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
503 content::WebContents* web_contents) { | 503 content::WebContents* web_contents) { |
504 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); | 504 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); |
505 } | 505 } |
506 #endif | 506 #endif |
507 | 507 |
508 } // namespace android_webview | 508 } // namespace android_webview |
OLD | NEW |