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

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

Issue 185813004: [Geolocation] Attach user gesture indicator to permission request call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: plumb through Created 6 years, 9 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 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 namespace content { 10 namespace content {
(...skipping 11 matching lines...) Expand all
22 22
23 private: 23 private:
24 friend class ChromeGeolocationPermissionContext; 24 friend class ChromeGeolocationPermissionContext;
25 25
26 virtual ~ChromeGeolocationPermissionContextAndroid(); 26 virtual ~ChromeGeolocationPermissionContextAndroid();
27 27
28 // ChromeGeolocationPermissionContext implementation: 28 // ChromeGeolocationPermissionContext implementation:
29 virtual void DecidePermission(content::WebContents* web_contents, 29 virtual void DecidePermission(content::WebContents* web_contents,
30 const PermissionRequestID& id, 30 const PermissionRequestID& id,
31 const GURL& requesting_frame, 31 const GURL& requesting_frame,
32 bool user_gesture,
32 const GURL& embedder, 33 const GURL& embedder,
33 const std::string& accept_button_label, 34 const std::string& accept_button_label,
34 base::Callback<void(bool)> callback) OVERRIDE; 35 base::Callback<void(bool)> callback) OVERRIDE;
35 36
36 virtual void PermissionDecided(const PermissionRequestID& id, 37 virtual void PermissionDecided(const PermissionRequestID& id,
37 const GURL& requesting_frame, 38 const GURL& requesting_frame,
38 const GURL& embedder, 39 const GURL& embedder,
39 base::Callback<void(bool)> callback, 40 base::Callback<void(bool)> callback,
40 bool allowed) OVERRIDE; 41 bool allowed) OVERRIDE;
41 42
(...skipping 10 matching lines...) Expand all
52 void CheckMasterLocation(content::WebContents* web_contents, 53 void CheckMasterLocation(content::WebContents* web_contents,
53 const PermissionRequestID& id, 54 const PermissionRequestID& id,
54 const GURL& requesting_frame, 55 const GURL& requesting_frame,
55 const GURL& embedder, 56 const GURL& embedder,
56 base::Callback<void(bool)> callback); 57 base::Callback<void(bool)> callback);
57 58
58 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid); 59 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationPermissionContextAndroid);
59 }; 60 };
60 61
61 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR OID_H_ 62 #endif // CHROME_BROWSER_GEOLOCATION_CHROME_GEOLOCATION_PERMISSION_CONTEXT_ANDR OID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698