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

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: Fix ChromeOS 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // GeolocationPermissionContext: 55 // GeolocationPermissionContext:
56 void RequestPermission( 56 void RequestPermission(
57 content::WebContents* web_contents, 57 content::WebContents* web_contents,
58 const PermissionRequestID& id, 58 const PermissionRequestID& id,
59 const GURL& requesting_frame_origin, 59 const GURL& requesting_frame_origin,
60 bool user_gesture, 60 bool user_gesture,
61 const BrowserPermissionCallback& callback) override; 61 const BrowserPermissionCallback& callback) override;
62 void CancelPermissionRequest(content::WebContents* web_contents, 62 void CancelPermissionRequest(content::WebContents* web_contents,
63 const PermissionRequestID& id) override; 63 const PermissionRequestID& id) override;
64 void NotifyPermissionSet(content::WebContents* web_contents,
65 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;
64 71
65 void HandleUpdateAndroidPermissions(const PermissionRequestID& id, 72 void HandleUpdateAndroidPermissions(content::WebContents* web_contents,
73 const PermissionRequestID& id,
66 const GURL& requesting_frame_origin, 74 const GURL& requesting_frame_origin,
67 const GURL& embedding_origin, 75 const GURL& embedding_origin,
68 const BrowserPermissionCallback& callback, 76 const BrowserPermissionCallback& callback,
69 bool permissions_updated); 77 bool permissions_updated);
70 78
71 // Overrides the LocationSettings object used to determine whether 79 // Overrides the LocationSettings object used to determine whether
72 // system and Chrome-wide location permissions are enabled. 80 // system and Chrome-wide location permissions are enabled.
73 void SetLocationSettingsForTesting( 81 void SetLocationSettingsForTesting(
74 std::unique_ptr<LocationSettings> settings); 82 std::unique_ptr<LocationSettings> settings);
75 83
76 std::unique_ptr<LocationSettings> location_settings_; 84 std::unique_ptr<LocationSettings> location_settings_;
77 85
78 // This is owned by the InfoBarService (owner of the InfoBar). 86 // This is owned by the InfoBarService (owner of the InfoBar).
79 infobars::InfoBar* permission_update_infobar_; 87 infobars::InfoBar* permission_update_infobar_;
80 88
81 // Must be the last member, to ensure that it will be destroyed first, which 89 // Must be the last member, to ensure that it will be destroyed first, which
82 // will invalidate weak pointers. 90 // will invalidate weak pointers.
83 base::WeakPtrFactory<GeolocationPermissionContextAndroid> weak_factory_; 91 base::WeakPtrFactory<GeolocationPermissionContextAndroid> weak_factory_;
84 92
85 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextAndroid); 93 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextAndroid);
86 }; 94 };
87 95
88 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_ 96 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698