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

Unified Diff: chrome/browser/geolocation/chrome_geolocation_permission_context_android.h

Issue 330143002: Simplify geolocation permission request in the Content API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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
Index: chrome/browser/geolocation/chrome_geolocation_permission_context_android.h
diff --git a/chrome/browser/geolocation/chrome_geolocation_permission_context_android.h b/chrome/browser/geolocation/chrome_geolocation_permission_context_android.h
deleted file mode 100644
index cd8e69d35e78d57cc3162b0f4c457d7c4191f5be..0000000000000000000000000000000000000000
--- a/chrome/browser/geolocation/chrome_geolocation_permission_context_android.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_
-#define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_
-
-#include "chrome/browser/content_settings/permission_request_id.h"
-#include "chrome/browser/geolocation/chrome_geolocation_permission_context.h"
-#include "url/gurl.h"
-
-namespace content {
-class WebContents;
-}
-
-class GoogleLocationSettingsHelper;
-
-// Android-specific geolocation permission flow, taking into account the
-// Google Location Settings, if available.
-class ChromeGeolocationPermissionContextAndroid
- : public ChromeGeolocationPermissionContext {
- public:
- explicit ChromeGeolocationPermissionContextAndroid(Profile* profile);
-
- private:
- struct PermissionRequestInfo {
- PermissionRequestInfo();
-
- PermissionRequestID id;
- GURL requesting_frame;
- bool user_gesture;
- GURL embedder;
- };
-
- friend class ChromeGeolocationPermissionContext;
-
- virtual ~ChromeGeolocationPermissionContextAndroid();
-
- // ChromeGeolocationPermissionContext implementation:
- virtual void DecidePermission(content::WebContents* web_contents,
- const PermissionRequestID& id,
- const GURL& requesting_frame,
- bool user_gesture,
- const GURL& embedder,
- const std::string& accept_button_label,
- base::Callback<void(bool)> callback) OVERRIDE;
-
- virtual void PermissionDecided(const PermissionRequestID& id,
- const GURL& requesting_frame,
- const GURL& embedder,
- base::Callback<void(bool)> callback,
- bool allowed) OVERRIDE;
-
- void ProceedDecidePermission(content::WebContents* web_contents,
- const PermissionRequestInfo& info,
- const std::string& accept_button_label,
- base::Callback<void(bool)> callback);
-
- scoped_ptr<GoogleLocationSettingsHelper> google_location_settings_helper_;
-
- private:
- void CheckMasterLocation(content::WebContents* web_contents,
- const PermissionRequestInfo& info,
- base::Callback<void(bool)> callback);
-
- DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid);
-};
-
-#endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698