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

Side by Side Diff: content/public/browser/geolocation_permission_context.h

Issue 11269002: Introduce GeolocationPermissionRequestID, a wrapper struct to contain the (render process ID, rende… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « content/browser/geolocation/geolocation_dispatcher_host.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_
6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 13 matching lines...) Expand all
24 // should be called with the result. 24 // should be called with the result.
25 virtual void RequestGeolocationPermission( 25 virtual void RequestGeolocationPermission(
26 int render_process_id, 26 int render_process_id,
27 int render_view_id, 27 int render_view_id,
28 int bridge_id, 28 int bridge_id,
29 const GURL& requesting_frame, 29 const GURL& requesting_frame,
30 base::Callback<void(bool)> callback) = 0; 30 base::Callback<void(bool)> callback) = 0;
31 31
32 // The renderer is cancelling a pending permission request. 32 // The renderer is cancelling a pending permission request.
33 virtual void CancelGeolocationPermissionRequest( 33 virtual void CancelGeolocationPermissionRequest(
34 int render_process_id, int render_view_id, int bridge_id, 34 int render_process_id,
35 int render_view_id,
36 int bridge_id,
35 const GURL& requesting_frame) = 0; 37 const GURL& requesting_frame) = 0;
36 38
37 protected: 39 protected:
38 virtual ~GeolocationPermissionContext() {} 40 virtual ~GeolocationPermissionContext() {}
39 41
40 private: 42 private:
41 friend class base::RefCountedThreadSafe<GeolocationPermissionContext>; 43 friend class base::RefCountedThreadSafe<GeolocationPermissionContext>;
42 }; 44 };
43 45
44 } // namespace content 46 } // namespace content
45 47
46 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_ 48 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/browser/geolocation/geolocation_dispatcher_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698