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

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

Issue 2723983004: Add PermissionManager::GetPermissionStatusForFrame function (Closed)
Patch Set: Add PermissionManager::GetPermissionStatusForFrame function Created 3 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
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 29 matching lines...) Expand all
40 40
41 class GeolocationPermissionContextAndroid 41 class GeolocationPermissionContextAndroid
42 : public GeolocationPermissionContext { 42 : public GeolocationPermissionContext {
43 public: 43 public:
44 explicit GeolocationPermissionContextAndroid(Profile* profile); 44 explicit GeolocationPermissionContextAndroid(Profile* profile);
45 ~GeolocationPermissionContextAndroid() override; 45 ~GeolocationPermissionContextAndroid() override;
46 46
47 protected: 47 protected:
48 // GeolocationPermissionContext: 48 // GeolocationPermissionContext:
49 ContentSetting GetPermissionStatusInternal( 49 ContentSetting GetPermissionStatusInternal(
50 content::RenderFrameHost* render_frame_host,
50 const GURL& requesting_origin, 51 const GURL& requesting_origin,
51 const GURL& embedding_origin) const override; 52 const GURL& embedding_origin) const override;
52 53
53 private: 54 private:
54 friend class GeolocationPermissionContextTests; 55 friend class GeolocationPermissionContextTests;
55 56
56 // GeolocationPermissionContext: 57 // GeolocationPermissionContext:
57 void RequestPermission( 58 void RequestPermission(
58 content::WebContents* web_contents, 59 content::WebContents* web_contents,
59 const PermissionRequestID& id, 60 const PermissionRequestID& id,
(...skipping 26 matching lines...) Expand all
86 infobars::InfoBar* permission_update_infobar_; 87 infobars::InfoBar* permission_update_infobar_;
87 88
88 // 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
89 // will invalidate weak pointers. 90 // will invalidate weak pointers.
90 base::WeakPtrFactory<GeolocationPermissionContextAndroid> weak_factory_; 91 base::WeakPtrFactory<GeolocationPermissionContextAndroid> weak_factory_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextAndroid); 93 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextAndroid);
93 }; 94 };
94 95
95 #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