| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 } | 161 } |
| 162 | 162 |
| 163 } // namespace | 163 } // namespace |
| 164 | 164 |
| 165 std::string AwContentBrowserClient::GetAcceptLangsImpl() { | 165 std::string AwContentBrowserClient::GetAcceptLangsImpl() { |
| 166 // Start with the currnet locale. | 166 // Start with the currnet locale. |
| 167 std::string langs = l10n_util::GetDefaultLocale(); | 167 std::string langs = l10n_util::GetDefaultLocale(); |
| 168 | 168 |
| 169 // If we're not en-US, add in en-US which will be | 169 // If we're not en-US, add in en-US which will be |
| 170 // used with a lower q-value. | 170 // used with a lower q-value. |
| 171 if (StringToLowerASCII(langs) != "en-us") { | 171 if (base::StringToLowerASCII(langs) != "en-us") { |
| 172 langs += ",en-US"; | 172 langs += ",en-US"; |
| 173 } | 173 } |
| 174 return langs; | 174 return langs; |
| 175 } | 175 } |
| 176 | 176 |
| 177 AwBrowserContext* AwContentBrowserClient::GetAwBrowserContext() { | 177 AwBrowserContext* AwContentBrowserClient::GetAwBrowserContext() { |
| 178 return AwBrowserContext::GetDefault(); | 178 return AwBrowserContext::GetDefault(); |
| 179 } | 179 } |
| 180 | 180 |
| 181 AwContentBrowserClient::AwContentBrowserClient( | 181 AwContentBrowserClient::AwContentBrowserClient( |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 | 588 |
| 589 #if defined(VIDEO_HOLE) | 589 #if defined(VIDEO_HOLE) |
| 590 content::ExternalVideoSurfaceContainer* | 590 content::ExternalVideoSurfaceContainer* |
| 591 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 591 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 592 content::WebContents* web_contents) { | 592 content::WebContents* web_contents) { |
| 593 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); | 593 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); |
| 594 } | 594 } |
| 595 #endif | 595 #endif |
| 596 | 596 |
| 597 } // namespace android_webview | 597 } // namespace android_webview |
| OLD | NEW |