Chromium Code Reviews| 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 |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..eb4dec8877988bdc8d4d03e65191347709f1a6b9 |
| --- /dev/null |
| +++ b/chrome/browser/geolocation/chrome_geolocation_permission_context_android.h |
| @@ -0,0 +1,39 @@ |
| +// 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/geolocation/chrome_geolocation_permission_context.h" |
| + |
| + |
| +// Android-specific geolocation permission flow, taking into account the |
| +// Google Location Settings, if available. |
| +class ChromeGeolocationPermissionContextAndroid |
| + : public ChromeGeolocationPermissionContext { |
| + |
| + private: |
| + friend class ChromeGeolocationPermissionContext; |
| + explicit ChromeGeolocationPermissionContextAndroid(Profile* profile); |
| + |
|
bulach
2012/10/17 13:17:38
nit:
// ChromeGeolocationPermissionContext imple
Ramya
2012/10/17 21:43:31
Done.
|
| + virtual void DecidePermission( |
| + int render_process_id, |
| + int render_view_id, |
| + int bridge_id, |
| + const GURL& requesting_frame, |
| + const GURL& embedder, |
| + base::Callback<void(bool)> callback) OVERRIDE; |
| + |
| + virtual void PermissionDecided(int render_process_id, |
| + int render_view_id, |
| + int bridge_id, |
| + const GURL& requesting_frame, |
| + const GURL& embedder, |
| + base::Callback<void(bool)> callback, |
| + bool allowed) OVERRIDE; |
| + |
| + virtual GeolocationInfoBarQueueController* CreateQueueController() OVERRIDE; |
|
bulach
2012/10/17 13:17:38
nit:
DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPe
Ramya
2012/10/17 21:43:31
Done.
|
| +}; |
| + |
| +#endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_ |