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

Side by Side Diff: content/public/browser/content_browser_client.cc

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, 4 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/public/browser/content_browser_client.h" 5 #include "content/public/browser/content_browser_client.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "ui/gfx/image/image_skia.h" 8 #include "ui/gfx/image/image_skia.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 ResourceContext* context, 210 ResourceContext* context,
211 int render_process_id) { 211 int render_process_id) {
212 return blink::WebNotificationPermissionAllowed; 212 return blink::WebNotificationPermissionAllowed;
213 } 213 }
214 214
215 void ContentBrowserClient::RequestGeolocationPermission( 215 void ContentBrowserClient::RequestGeolocationPermission(
216 WebContents* web_contents, 216 WebContents* web_contents,
217 int bridge_id, 217 int bridge_id,
218 const GURL& requesting_frame, 218 const GURL& requesting_frame,
219 bool user_gesture, 219 bool user_gesture,
220 base::Callback<void(bool)> result_callback, 220 const base::Callback<void(bool)> result_callback) {
Michael van Ouwerkerk 2014/08/13 10:01:11 Why does this need to be const?
Miguel Garcia 2014/08/13 13:18:13 Const ref. It does not need to but it's just nicer
221 base::Closure* cancel_callback) {
222 result_callback.Run(true); 221 result_callback.Run(true);
223 } 222 }
224 223
224 // TODO(miguelg): Create a small interface to represent a permission request
225 // instead of adding one method per permission and action.
226 void ContentBrowserClient::CancelGeolocationPermissionRequest(
227 WebContents* web_contents,
228 int bridge_id,
229 const GURL& requesting_frame) {
230 }
231
225 void ContentBrowserClient::RequestMidiSysExPermission( 232 void ContentBrowserClient::RequestMidiSysExPermission(
226 WebContents* web_contents, 233 WebContents* web_contents,
227 int bridge_id, 234 int bridge_id,
228 const GURL& requesting_frame, 235 const GURL& requesting_frame,
229 bool user_gesture, 236 bool user_gesture,
230 base::Callback<void(bool)> result_callback, 237 base::Callback<void(bool)> result_callback,
231 base::Closure* cancel_callback) { 238 base::Closure* cancel_callback) {
232 result_callback.Run(true); 239 result_callback.Run(true);
233 } 240 }
234 241
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 351
345 #if defined(VIDEO_HOLE) 352 #if defined(VIDEO_HOLE)
346 ExternalVideoSurfaceContainer* 353 ExternalVideoSurfaceContainer*
347 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 354 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
348 WebContents* web_contents) { 355 WebContents* web_contents) {
349 return NULL; 356 return NULL;
350 } 357 }
351 #endif 358 #endif
352 359
353 } // namespace content 360 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698