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

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

Issue 2627853002: Show the search geolocation disclosure from geolocation API use. (Closed)
Patch Set: Marked old ones obsolete Created 3 years, 11 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_ 5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_
6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_ 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_
7 7
8 // The flow for geolocation permissions on Android needs to take into account 8 // The flow for geolocation permissions on Android needs to take into account
9 // the global geolocation settings so it differs from the desktop one. It 9 // the global geolocation settings so it differs from the desktop one. It
10 // works as follows. 10 // works as follows.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // GeolocationPermissionContext: 56 // GeolocationPermissionContext:
57 void RequestPermission( 57 void RequestPermission(
58 content::WebContents* web_contents, 58 content::WebContents* web_contents,
59 const PermissionRequestID& id, 59 const PermissionRequestID& id,
60 const GURL& requesting_frame_origin, 60 const GURL& requesting_frame_origin,
61 bool user_gesture, 61 bool user_gesture,
62 const BrowserPermissionCallback& callback) override; 62 const BrowserPermissionCallback& callback) override;
63 void CancelPermissionRequest(content::WebContents* web_contents, 63 void CancelPermissionRequest(content::WebContents* web_contents,
64 const PermissionRequestID& id) override; 64 const PermissionRequestID& id) override;
65 void NotifyPermissionSet(const PermissionRequestID& id,
66 const GURL& requesting_origin,
67 const GURL& embedding_origin,
68 const BrowserPermissionCallback& callback,
69 bool persist,
70 ContentSetting content_setting) override;
65 71
66 void HandleUpdateAndroidPermissions(const PermissionRequestID& id, 72 void HandleUpdateAndroidPermissions(const PermissionRequestID& id,
67 const GURL& requesting_frame_origin, 73 const GURL& requesting_frame_origin,
68 const GURL& embedding_origin, 74 const GURL& embedding_origin,
69 const BrowserPermissionCallback& callback, 75 const BrowserPermissionCallback& callback,
70 bool permissions_updated); 76 bool permissions_updated);
71 77
72 // Overrides the LocationSettings object used to determine whether 78 // Overrides the LocationSettings object used to determine whether
73 // system and Chrome-wide location permissions are enabled. 79 // system and Chrome-wide location permissions are enabled.
74 void SetLocationSettingsForTesting( 80 void SetLocationSettingsForTesting(
75 std::unique_ptr<LocationSettings> settings); 81 std::unique_ptr<LocationSettings> settings);
76 82
77 std::unique_ptr<LocationSettings> location_settings_; 83 std::unique_ptr<LocationSettings> location_settings_;
78 84
79 // This is owned by the InfoBarService (owner of the InfoBar). 85 // This is owned by the InfoBarService (owner of the InfoBar).
80 infobars::InfoBar* permission_update_infobar_; 86 infobars::InfoBar* permission_update_infobar_;
81 87
82 // Must be the last member, to ensure that it will be destroyed first, which 88 // Must be the last member, to ensure that it will be destroyed first, which
83 // will invalidate weak pointers. 89 // will invalidate weak pointers.
84 base::WeakPtrFactory<GeolocationPermissionContextAndroid> weak_factory_; 90 base::WeakPtrFactory<GeolocationPermissionContextAndroid> weak_factory_;
85 91
86 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextAndroid); 92 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextAndroid);
87 }; 93 };
88 94
89 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_ 95 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698