| 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 <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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 ~AwAccessTokenStore() override {} | 159 ~AwAccessTokenStore() override {} |
| 160 | 160 |
| 161 DISALLOW_COPY_AND_ASSIGN(AwAccessTokenStore); | 161 DISALLOW_COPY_AND_ASSIGN(AwAccessTokenStore); |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 // A provider of Geolocation services to override AccessTokenStore. | 164 // A provider of Geolocation services to override AccessTokenStore. |
| 165 class AwGeolocationDelegate : public content::GeolocationDelegate { | 165 class AwGeolocationDelegate : public content::GeolocationDelegate { |
| 166 public: | 166 public: |
| 167 AwGeolocationDelegate() = default; | 167 AwGeolocationDelegate() = default; |
| 168 | 168 |
| 169 content::AccessTokenStore* CreateAccessTokenStore() final { | 169 scoped_refptr<content::AccessTokenStore> CreateAccessTokenStore() final { |
| 170 return new AwAccessTokenStore(); | 170 return new AwAccessTokenStore(); |
| 171 } | 171 } |
| 172 | 172 |
| 173 private: | 173 private: |
| 174 DISALLOW_COPY_AND_ASSIGN(AwGeolocationDelegate); | 174 DISALLOW_COPY_AND_ASSIGN(AwGeolocationDelegate); |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 AwLocaleManager* g_locale_manager = NULL; | 177 AwLocaleManager* g_locale_manager = NULL; |
| 178 | 178 |
| 179 } // anonymous namespace | 179 } // anonymous namespace |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 | 552 |
| 553 #if defined(VIDEO_HOLE) | 553 #if defined(VIDEO_HOLE) |
| 554 content::ExternalVideoSurfaceContainer* | 554 content::ExternalVideoSurfaceContainer* |
| 555 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 555 AwContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 556 content::WebContents* web_contents) { | 556 content::WebContents* web_contents) { |
| 557 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); | 557 return native_factory_->CreateExternalVideoSurfaceContainer(web_contents); |
| 558 } | 558 } |
| 559 #endif | 559 #endif |
| 560 | 560 |
| 561 } // namespace android_webview | 561 } // namespace android_webview |
| OLD | NEW |