Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2140)

Unified Diff: android_webview/browser/aw_content_browser_client.cc

Issue 2174613002: Geolocation: move creation of the GeolocationDelegate to the embedders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | blimp/engine/app/blimp_browser_main_parts.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_content_browser_client.cc
diff --git a/android_webview/browser/aw_content_browser_client.cc b/android_webview/browser/aw_content_browser_client.cc
index 2a1e14a33a2ef886002a35216a04d86f82b9d06f..abf4fb98c9bc1051ceb94b99d92674b87c1369ea 100644
--- a/android_webview/browser/aw_content_browser_client.cc
+++ b/android_webview/browser/aw_content_browser_client.cc
@@ -33,12 +33,10 @@
#include "components/cdm/browser/cdm_message_filter_android.h"
#include "components/crash/content/browser/crash_micro_dump_manager_android.h"
#include "components/navigation_interception/intercept_navigation_delegate.h"
-#include "content/public/browser/access_token_store.h"
#include "content/public/browser/browser_message_filter.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_security_policy.h"
#include "content/public/browser/client_certificate_delegate.h"
-#include "content/public/browser/geolocation_delegate.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/navigation_throttle.h"
#include "content/public/browser/render_frame_host.h"
@@ -142,39 +140,6 @@ void AwContentsMessageFilter::OnSubFrameCreated(int parent_render_frame_id,
process_id_, parent_render_frame_id, child_render_frame_id);
}
-class AwAccessTokenStore : public content::AccessTokenStore {
- public:
- AwAccessTokenStore() { }
-
- // content::AccessTokenStore implementation
- void LoadAccessTokens(const LoadAccessTokensCallback& request) override {
- AccessTokenStore::AccessTokenMap access_token_map;
- // AccessTokenMap and net::URLRequestContextGetter not used on Android,
- // but Run needs to be called to finish the geolocation setup.
- request.Run(access_token_map, NULL);
- }
- void SaveAccessToken(const GURL& server_url,
- const base::string16& access_token) override {}
-
- private:
- ~AwAccessTokenStore() override {}
-
- DISALLOW_COPY_AND_ASSIGN(AwAccessTokenStore);
-};
-
-// A provider of Geolocation services to override AccessTokenStore.
-class AwGeolocationDelegate : public content::GeolocationDelegate {
- public:
- AwGeolocationDelegate() = default;
-
- scoped_refptr<content::AccessTokenStore> CreateAccessTokenStore() final {
- return new AwAccessTokenStore();
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(AwGeolocationDelegate);
-};
-
AwLocaleManager* g_locale_manager = NULL;
} // anonymous namespace
@@ -443,11 +408,6 @@ net::NetLog* AwContentBrowserClient::GetNetLog() {
return browser_context_->GetAwURLRequestContext()->GetNetLog();
}
-content::GeolocationDelegate*
-AwContentBrowserClient::CreateGeolocationDelegate() {
- return new AwGeolocationDelegate();
-}
-
bool AwContentBrowserClient::IsFastShutdownPossible() {
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kSingleProcess)) {
« no previous file with comments | « android_webview/browser/aw_content_browser_client.h ('k') | blimp/engine/app/blimp_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698