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

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

Issue 774573003: Start pulling away notification logic from ChromeContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 bool* in_memory) { 204 bool* in_memory) {
205 partition_domain->clear(); 205 partition_domain->clear();
206 partition_name->clear(); 206 partition_name->clear();
207 *in_memory = false; 207 *in_memory = false;
208 } 208 }
209 209
210 MediaObserver* ContentBrowserClient::GetMediaObserver() { 210 MediaObserver* ContentBrowserClient::GetMediaObserver() {
211 return NULL; 211 return NULL;
212 } 212 }
213 213
214 blink::WebNotificationPermission 214 PlatformNotificationService*
215 ContentBrowserClient::CheckDesktopNotificationPermission( 215 ContentBrowserClient::GetPlatformNotificationService() {
216 const GURL& source_origin, 216 return NULL;
217 ResourceContext* context,
218 int render_process_id) {
219 return blink::WebNotificationPermissionDenied;
220 } 217 }
221 218
222 void ContentBrowserClient::RequestPermission( 219 void ContentBrowserClient::RequestPermission(
223 PermissionType permission, 220 PermissionType permission,
224 WebContents* web_contents, 221 WebContents* web_contents,
225 int bridge_id, 222 int bridge_id,
226 const GURL& requesting_frame, 223 const GURL& requesting_frame,
227 bool user_gesture, 224 bool user_gesture,
228 const base::Callback<void(bool)>& result_callback) { 225 const base::Callback<void(bool)>& result_callback) {
229 result_callback.Run(true); 226 result_callback.Run(true);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 336
340 #if defined(VIDEO_HOLE) 337 #if defined(VIDEO_HOLE)
341 ExternalVideoSurfaceContainer* 338 ExternalVideoSurfaceContainer*
342 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 339 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
343 WebContents* web_contents) { 340 WebContents* web_contents) {
344 return NULL; 341 return NULL;
345 } 342 }
346 #endif 343 #endif
347 344
348 } // namespace content 345 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/browser/platform_notification_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698