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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 } 133 }
134 } 134 }
135 135
136 void GeolocationDispatcherHostImpl::OnRequestPermission( 136 void GeolocationDispatcherHostImpl::OnRequestPermission(
137 int render_view_id, 137 int render_view_id,
138 int bridge_id, 138 int bridge_id,
139 const GURL& requesting_frame) { 139 const GURL& requesting_frame) {
140 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 140 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
141 DVLOG(1) << __FUNCTION__ << " " << render_process_id_ << ":" 141 DVLOG(1) << __FUNCTION__ << " " << render_process_id_ << ":"
142 << render_view_id << ":" << bridge_id; 142 << render_view_id << ":" << bridge_id;
143 if (geolocation_permission_context_) { 143 if (geolocation_permission_context_.get()) {
144 geolocation_permission_context_->RequestGeolocationPermission( 144 geolocation_permission_context_->RequestGeolocationPermission(
145 render_process_id_, render_view_id, bridge_id, requesting_frame, 145 render_process_id_, render_view_id, bridge_id, requesting_frame,
146 base::Bind(&SendGeolocationPermissionResponse, render_process_id_, 146 base::Bind(&SendGeolocationPermissionResponse, render_process_id_,
147 render_view_id, bridge_id)); 147 render_view_id, bridge_id));
148 } else { 148 } else {
149 BrowserThread::PostTask( 149 BrowserThread::PostTask(
150 BrowserThread::UI, FROM_HERE, 150 BrowserThread::UI, FROM_HERE,
151 base::Bind(&SendGeolocationPermissionResponse, render_process_id_, 151 base::Bind(&SendGeolocationPermissionResponse, render_process_id_,
152 render_view_id, bridge_id, true)); 152 render_view_id, bridge_id, true));
153 } 153 }
154 } 154 }
155 155
156 void GeolocationDispatcherHostImpl::OnCancelPermissionRequest( 156 void GeolocationDispatcherHostImpl::OnCancelPermissionRequest(
157 int render_view_id, 157 int render_view_id,
158 int bridge_id, 158 int bridge_id,
159 const GURL& requesting_frame) { 159 const GURL& requesting_frame) {
160 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 160 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
161 DVLOG(1) << __FUNCTION__ << " " << render_process_id_ << ":" 161 DVLOG(1) << __FUNCTION__ << " " << render_process_id_ << ":"
162 << render_view_id << ":" << bridge_id; 162 << render_view_id << ":" << bridge_id;
163 if (geolocation_permission_context_) { 163 if (geolocation_permission_context_.get()) {
164 geolocation_permission_context_->CancelGeolocationPermissionRequest( 164 geolocation_permission_context_->CancelGeolocationPermissionRequest(
165 render_process_id_, render_view_id, bridge_id, requesting_frame); 165 render_process_id_, render_view_id, bridge_id, requesting_frame);
166 } 166 }
167 } 167 }
168 168
169 void GeolocationDispatcherHostImpl::OnStartUpdating( 169 void GeolocationDispatcherHostImpl::OnStartUpdating(
170 int render_view_id, 170 int render_view_id,
171 const GURL& requesting_frame, 171 const GURL& requesting_frame,
172 bool enable_high_accuracy) { 172 bool enable_high_accuracy) {
173 // StartUpdating() can be invoked as a result of high-accuracy mode 173 // StartUpdating() can be invoked as a result of high-accuracy mode
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 geolocation_permission_context); 224 geolocation_permission_context);
225 } 225 }
226 226
227 GeolocationDispatcherHost::GeolocationDispatcherHost() { 227 GeolocationDispatcherHost::GeolocationDispatcherHost() {
228 } 228 }
229 229
230 GeolocationDispatcherHost::~GeolocationDispatcherHost() { 230 GeolocationDispatcherHost::~GeolocationDispatcherHost() {
231 } 231 }
232 232
233 } // namespace content 233 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/geolocation/fake_access_token_store.cc ('k') | content/browser/in_process_webkit/indexed_db_quota_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698