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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review, take 2 Created 8 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) 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 #include "content/browser/geolocation/geolocation_dispatcher_host.h" 5 #include "content/browser/geolocation/geolocation_dispatcher_host.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 void NotifyArbitratorPermissionGranted( 25 void NotifyArbitratorPermissionGranted(
26 const GURL& requesting_frame) { 26 const GURL& requesting_frame) {
27 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 27 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
28 GeolocationProvider::GetInstance()->OnPermissionGranted(requesting_frame); 28 GeolocationProvider::GetInstance()->OnPermissionGranted(requesting_frame);
29 } 29 }
30 30
31 void SendGeolocationPermissionResponse( 31 void SendGeolocationPermissionResponse(
32 const GURL& requesting_frame, int render_process_id, int render_view_id, 32 const GURL& requesting_frame, int render_process_id, int render_view_id,
33 int bridge_id, bool allowed) { 33 int bridge_id, bool allowed) {
34 RenderViewHostImpl* r = RenderViewHostImpl::FromID( 34 content::RenderViewHostImpl* r = content::RenderViewHostImpl::FromID(
jam 2012/03/05 23:59:28 ditto
Jói 2012/03/06 16:38:55 Done.
35 render_process_id, render_view_id); 35 render_process_id, render_view_id);
36 if (!r) 36 if (!r)
37 return; 37 return;
38 r->Send(new GeolocationMsg_PermissionSet(render_view_id, bridge_id, allowed)); 38 r->Send(new GeolocationMsg_PermissionSet(render_view_id, bridge_id, allowed));
39 39
40 if (allowed) { 40 if (allowed) {
41 BrowserThread::PostTask( 41 BrowserThread::PostTask(
42 BrowserThread::IO, FROM_HERE, 42 BrowserThread::IO, FROM_HERE,
43 base::Bind(&NotifyArbitratorPermissionGranted, requesting_frame)); 43 base::Bind(&NotifyArbitratorPermissionGranted, requesting_frame));
44 } 44 }
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 } 205 }
206 } // namespace 206 } // namespace
207 207
208 GeolocationDispatcherHost* GeolocationDispatcherHost::New( 208 GeolocationDispatcherHost* GeolocationDispatcherHost::New(
209 int render_process_id, 209 int render_process_id,
210 GeolocationPermissionContext* geolocation_permission_context) { 210 GeolocationPermissionContext* geolocation_permission_context) {
211 return new GeolocationDispatcherHostImpl( 211 return new GeolocationDispatcherHostImpl(
212 render_process_id, 212 render_process_id,
213 geolocation_permission_context); 213 geolocation_permission_context);
214 } 214 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698