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

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
« no previous file with comments | « no previous file | chrome/browser/geolocation/geolocation_permission_context_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 class GeolocationPermissionContextAndroid 43 class GeolocationPermissionContextAndroid
44 : public GeolocationPermissionContext { 44 : public GeolocationPermissionContext {
45 public: 45 public:
46 explicit GeolocationPermissionContextAndroid(Profile* profile); 46 explicit GeolocationPermissionContextAndroid(Profile* profile);
47 ~GeolocationPermissionContextAndroid() override; 47 ~GeolocationPermissionContextAndroid() override;
48 48
49 protected: 49 protected:
50 // GeolocationPermissionContext: 50 // GeolocationPermissionContext:
51 ContentSetting GetPermissionStatusInternal( 51 ContentSetting GetPermissionStatusInternal(
52 content::RenderFrameHost* render_frame_host,
52 const GURL& requesting_origin, 53 const GURL& requesting_origin,
53 const GURL& embedding_origin) const override; 54 const GURL& embedding_origin) const override;
54 55
55 private: 56 private:
56 friend class GeolocationPermissionContextTests; 57 friend class GeolocationPermissionContextTests;
57 58
58 // GeolocationPermissionContext: 59 // GeolocationPermissionContext:
59 void RequestPermission( 60 void RequestPermission(
60 content::WebContents* web_contents, 61 content::WebContents* web_contents,
61 const PermissionRequestID& id, 62 const PermissionRequestID& id,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 infobars::InfoBar* permission_update_infobar_; 119 infobars::InfoBar* permission_update_infobar_;
119 120
120 // Must be the last member, to ensure that it will be destroyed first, which 121 // Must be the last member, to ensure that it will be destroyed first, which
121 // will invalidate weak pointers. 122 // will invalidate weak pointers.
122 base::WeakPtrFactory<GeolocationPermissionContextAndroid> weak_factory_; 123 base::WeakPtrFactory<GeolocationPermissionContextAndroid> weak_factory_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextAndroid); 125 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContextAndroid);
125 }; 126 };
126 127
127 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_ 128 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/geolocation/geolocation_permission_context_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698