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

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

Issue 750633003: Implement HasPermission() method in PermissionService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add dependencies to content_app, content_child and content_ppapi_plugin Created 6 years 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/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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 void ContentBrowserClient::RequestPermission( 219 void ContentBrowserClient::RequestPermission(
220 PermissionType permission, 220 PermissionType permission,
221 WebContents* web_contents, 221 WebContents* web_contents,
222 int bridge_id, 222 int bridge_id,
223 const GURL& requesting_frame, 223 const GURL& requesting_frame,
224 bool user_gesture, 224 bool user_gesture,
225 const base::Callback<void(bool)>& result_callback) { 225 const base::Callback<void(bool)>& result_callback) {
226 result_callback.Run(true); 226 result_callback.Run(true);
227 } 227 }
228 228
229 PermissionStatus ContentBrowserClient::GetPermissionStatus(
230 PermissionType permission,
231 BrowserContext* browser_context,
232 const GURL& requesting_origin,
233 const GURL& embedding_origin) {
234 return PERMISSION_STATUS_DENIED;
235 }
236
229 bool ContentBrowserClient::CanCreateWindow( 237 bool ContentBrowserClient::CanCreateWindow(
230 const GURL& opener_url, 238 const GURL& opener_url,
231 const GURL& opener_top_level_frame_url, 239 const GURL& opener_top_level_frame_url,
232 const GURL& source_origin, 240 const GURL& source_origin,
233 WindowContainerType container_type, 241 WindowContainerType container_type,
234 const GURL& target_url, 242 const GURL& target_url,
235 const Referrer& referrer, 243 const Referrer& referrer,
236 WindowOpenDisposition disposition, 244 WindowOpenDisposition disposition,
237 const blink::WebWindowFeatures& features, 245 const blink::WebWindowFeatures& features,
238 bool user_gesture, 246 bool user_gesture,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 336
329 #if defined(VIDEO_HOLE) 337 #if defined(VIDEO_HOLE)
330 ExternalVideoSurfaceContainer* 338 ExternalVideoSurfaceContainer*
331 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 339 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
332 WebContents* web_contents) { 340 WebContents* web_contents) {
333 return NULL; 341 return NULL;
334 } 342 }
335 #endif 343 #endif
336 344
337 } // namespace content 345 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698