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

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: Respond to review comments. 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
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "content/browser/geolocation/geolocation_provider.h" 12 #include "content/browser/geolocation/geolocation_provider.h"
13 #include "content/browser/renderer_host/render_message_filter.h" 13 #include "content/browser/renderer_host/render_message_filter.h"
14 #include "content/browser/renderer_host/render_process_host_impl.h" 14 #include "content/browser/renderer_host/render_process_host_impl.h"
15 #include "content/browser/renderer_host/render_view_host_impl.h" 15 #include "content/browser/renderer_host/render_view_host_impl.h"
16 #include "content/public/browser/geolocation_permission_context.h" 16 #include "content/public/browser/geolocation_permission_context.h"
17 #include "content/common/geolocation_messages.h" 17 #include "content/common/geolocation_messages.h"
18 #include "content/common/geoposition.h" 18 #include "content/common/geoposition.h"
19 19
20 using content::BrowserThread; 20 using content::BrowserThread;
21 using content::GeolocationPermissionContext; 21 using content::GeolocationPermissionContext;
22 using content::RenderViewHostImpl;
22 23
23 namespace { 24 namespace {
24 25
25 void NotifyArbitratorPermissionGranted( 26 void NotifyArbitratorPermissionGranted(
26 const GURL& requesting_frame) { 27 const GURL& requesting_frame) {
27 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 28 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
28 GeolocationProvider::GetInstance()->OnPermissionGranted(requesting_frame); 29 GeolocationProvider::GetInstance()->OnPermissionGranted(requesting_frame);
29 } 30 }
30 31
31 void SendGeolocationPermissionResponse( 32 void SendGeolocationPermissionResponse(
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 } 206 }
206 } // namespace 207 } // namespace
207 208
208 GeolocationDispatcherHost* GeolocationDispatcherHost::New( 209 GeolocationDispatcherHost* GeolocationDispatcherHost::New(
209 int render_process_id, 210 int render_process_id,
210 GeolocationPermissionContext* geolocation_permission_context) { 211 GeolocationPermissionContext* geolocation_permission_context) {
211 return new GeolocationDispatcherHostImpl( 212 return new GeolocationDispatcherHostImpl(
212 render_process_id, 213 render_process_id,
213 geolocation_permission_context); 214 geolocation_permission_context);
214 } 215 }
OLDNEW
« no previous file with comments | « content/browser/download/save_file_manager.cc ('k') | content/browser/gpu/gpu_process_host_ui_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698