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

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

Issue 398163008: Export content_common dependency from some content targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add content::NotificationPresenterPermission enum Created 6 years, 5 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
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 bool* in_memory) { 197 bool* in_memory) {
198 partition_domain->clear(); 198 partition_domain->clear();
199 partition_name->clear(); 199 partition_name->clear();
200 *in_memory = false; 200 *in_memory = false;
201 } 201 }
202 202
203 MediaObserver* ContentBrowserClient::GetMediaObserver() { 203 MediaObserver* ContentBrowserClient::GetMediaObserver() {
204 return NULL; 204 return NULL;
205 } 205 }
206 206
207 blink::WebNotificationPresenter::Permission 207 NotificationPresenterPermission
208 ContentBrowserClient::CheckDesktopNotificationPermission( 208 ContentBrowserClient::CheckDesktopNotificationPermission(
209 const GURL& source_origin, 209 const GURL& source_origin,
210 ResourceContext* context, 210 ResourceContext* context,
211 int render_process_id) { 211 int render_process_id) {
212 return blink::WebNotificationPresenter::PermissionAllowed; 212 return NOTIFICATION_PRESENTER_PERMISSION_ALLOWED;
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 base::Callback<void(bool)> result_callback,
221 base::Closure* cancel_callback) { 221 base::Closure* cancel_callback) {
222 result_callback.Run(true); 222 result_callback.Run(true);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 344
345 #if defined(VIDEO_HOLE) 345 #if defined(VIDEO_HOLE)
346 ExternalVideoSurfaceContainer* 346 ExternalVideoSurfaceContainer*
347 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 347 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
348 WebContents* web_contents) { 348 WebContents* web_contents) {
349 return NULL; 349 return NULL;
350 } 350 }
351 #endif 351 #endif
352 352
353 } // namespace content 353 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/browser/notification_presenter_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698