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

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

Issue 1320005: Adds GeolocationContentSettings on TabContents. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_H_ 5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ 6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_
7 7
8 #include <map> 8 #include <map>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Triggers the associated UI element to request permission. 44 // Triggers the associated UI element to request permission.
45 void RequestPermissionFromUI( 45 void RequestPermissionFromUI(
46 int render_process_id, int render_view_id, int bridge_id, 46 int render_process_id, int render_view_id, int bridge_id,
47 const GURL& requesting_frame); 47 const GURL& requesting_frame);
48 48
49 // Notifies whether or not the corresponding render is allowed to use 49 // Notifies whether or not the corresponding render is allowed to use
50 // geolocation. 50 // geolocation.
51 void NotifyPermissionSet( 51 void NotifyPermissionSet(
52 int render_process_id, int render_view_id, int bridge_id, 52 int render_process_id, int render_view_id, int bridge_id,
53 bool allowed); 53 const GURL& requesting_frame, bool allowed);
54 54
55 // This should only be accessed from the UI thread. 55 // This should only be accessed from the UI thread.
56 Profile* const profile_; 56 Profile* const profile_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContext); 58 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContext);
59 }; 59 };
60 60
61 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ 61 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/geolocation_browsertest.cc ('k') | chrome/browser/geolocation/geolocation_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698