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

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: add a DCHECK 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 328
332 #if defined(VIDEO_HOLE) 329 #if defined(VIDEO_HOLE)
333 ExternalVideoSurfaceContainer* 330 ExternalVideoSurfaceContainer*
334 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 331 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
335 WebContents* web_contents) { 332 WebContents* web_contents) {
336 return NULL; 333 return NULL;
337 } 334 }
338 #endif 335 #endif
339 336
340 } // namespace content 337 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698