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

Side by Side Diff: content/browser/geolocation/geolocation_dispatcher_host.h

Issue 459953002: Migrate geolocation permissions to the new common permission class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 2 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) 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_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_DISPATCHER_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 bool paused_; 68 bool paused_;
69 69
70 struct PendingPermission { 70 struct PendingPermission {
71 PendingPermission(int render_frame_id, 71 PendingPermission(int render_frame_id,
72 int render_process_id, 72 int render_process_id,
73 int bridge_id); 73 int bridge_id);
74 ~PendingPermission(); 74 ~PendingPermission();
75 int render_frame_id; 75 int render_frame_id;
76 int render_process_id; 76 int render_process_id;
77 int bridge_id; 77 int bridge_id;
78 base::Closure cancel;
79 }; 78 };
80 std::vector<PendingPermission> pending_permissions_; 79 std::vector<PendingPermission> pending_permissions_;
81 80
82 scoped_ptr<GeolocationProvider::Subscription> geolocation_subscription_; 81 scoped_ptr<GeolocationProvider::Subscription> geolocation_subscription_;
83 82
84 base::WeakPtrFactory<GeolocationDispatcherHost> weak_factory_; 83 base::WeakPtrFactory<GeolocationDispatcherHost> weak_factory_;
85 84
86 DISALLOW_COPY_AND_ASSIGN(GeolocationDispatcherHost); 85 DISALLOW_COPY_AND_ASSIGN(GeolocationDispatcherHost);
87 }; 86 };
88 87
89 } // namespace content 88 } // namespace content
90 89
91 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_DISPATCHER_HOST_H_ 90 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698