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

Side by Side Diff: chrome/browser/geolocation/chrome_geolocation_permission_context_android.h

Issue 11269002: Introduce GeolocationPermissionRequestID, a wrapper struct to contain the (render process ID, rende… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID _H_ 5 #ifndef CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID _H_
6 #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID _H_ 6 #define CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDROID _H_
7 7
8 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h" 8 #include "chrome/browser/geolocation/chrome_geolocation_permission_context.h"
9 9
10 10
11 // Android-specific geolocation permission flow, taking into account the 11 // Android-specific geolocation permission flow, taking into account the
12 // Google Location Settings, if available. 12 // Google Location Settings, if available.
13 class ChromeGeolocationPermissionContextAndroid 13 class ChromeGeolocationPermissionContextAndroid
14 : public ChromeGeolocationPermissionContext { 14 : public ChromeGeolocationPermissionContext {
15 public: 15 public:
16 explicit ChromeGeolocationPermissionContextAndroid(Profile* profile); 16 explicit ChromeGeolocationPermissionContextAndroid(Profile* profile);
17 17
18 private: 18 private:
19 friend class ChromeGeolocationPermissionContext; 19 friend class ChromeGeolocationPermissionContext;
20 20
21 virtual ~ChromeGeolocationPermissionContextAndroid(); 21 virtual ~ChromeGeolocationPermissionContextAndroid();
22 22
23 // ChromeGeolocationPermissionContext implementation: 23 // ChromeGeolocationPermissionContext implementation:
24 virtual void DecidePermission( 24 virtual void DecidePermission(const GeolocationPermissionRequestID& id,
25 int render_process_id, 25 const GURL& requesting_frame,
26 int render_view_id, 26 const GURL& embedder,
27 int bridge_id, 27 base::Callback<void(bool)> callback) OVERRIDE;
28 const GURL& requesting_frame,
29 const GURL& embedder,
30 base::Callback<void(bool)> callback) OVERRIDE;
31 28
32 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid); 29 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid);
33 }; 30 };
34 31
35 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR OID_H_ 32 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR OID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698