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

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

Issue 5612005: Client-based geolocation support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on trunk Created 10 years 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 28 matching lines...) Expand all
39 const GURL& requesting_frame); 39 const GURL& requesting_frame);
40 40
41 // Notifies whether or not the corresponding bridge is allowed to use 41 // Notifies whether or not the corresponding bridge is allowed to use
42 // geolocation via ViewMsg_Geolocation_PermissionSet. 42 // geolocation via ViewMsg_Geolocation_PermissionSet.
43 void NotifyPermissionSet( 43 void NotifyPermissionSet(
44 int render_process_id, int render_view_id, int bridge_id, 44 int render_process_id, int render_view_id, int bridge_id,
45 const GURL& requesting_frame, bool allowed); 45 const GURL& requesting_frame, bool allowed);
46 46
47 // Called when a geolocation object wants to start receiving location updates. 47 // Called when a geolocation object wants to start receiving location updates.
48 // This also applies global policy around which location providers may be 48 // This also applies global policy around which location providers may be
49 // enbaled at a given time (e.g. prior to the user agreeing to any geolocation 49 // enabled at a given time (e.g. prior to the user agreeing to any geolocation
50 // permission requests). 50 // permission requests).
51 void StartUpdatingRequested( 51 void StartUpdatingRequested(
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 const GURL& requesting_frame); 53 const GURL& requesting_frame);
54 54
55 // Called when a geolocation object has stopped. Because we are 55 // Called when a geolocation object has stopped. Because we are
56 // short-circuiting permission request (see StartUpdatingRequested above), we 56 // short-circuiting permission request (see StartUpdatingRequested above), we
57 // cancel any pending permission in here, since WebKit doesn't know about the 57 // cancel any pending permission in here, since WebKit doesn't know about the
58 // pending permission request and will never call 58 // pending permission request and will never call
59 // CancelGeolocationPermissionRequest(). 59 // CancelGeolocationPermissionRequest().
(...skipping 14 matching lines...) Expand all
74 // This should only be accessed from the UI thread. 74 // This should only be accessed from the UI thread.
75 Profile* const profile_; 75 Profile* const profile_;
76 76
77 scoped_ptr<GeolocationInfoBarQueueController> 77 scoped_ptr<GeolocationInfoBarQueueController>
78 geolocation_infobar_queue_controller_; 78 geolocation_infobar_queue_controller_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContext); 80 DISALLOW_COPY_AND_ASSIGN(GeolocationPermissionContext);
81 }; 81 };
82 82
83 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ 83 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698