OLD | NEW |
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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 bool* in_memory) { | 212 bool* in_memory) { |
213 partition_domain->clear(); | 213 partition_domain->clear(); |
214 partition_name->clear(); | 214 partition_name->clear(); |
215 *in_memory = false; | 215 *in_memory = false; |
216 } | 216 } |
217 | 217 |
218 MediaObserver* ContentBrowserClient::GetMediaObserver() { | 218 MediaObserver* ContentBrowserClient::GetMediaObserver() { |
219 return NULL; | 219 return NULL; |
220 } | 220 } |
221 | 221 |
222 blink::WebNotificationPermission | 222 PlatformNotificationService* |
223 ContentBrowserClient::CheckDesktopNotificationPermission( | 223 ContentBrowserClient::GetPlatformNotificationService() { |
224 const GURL& source_origin, | 224 return NULL; |
225 ResourceContext* context, | |
226 int render_process_id) { | |
227 return blink::WebNotificationPermissionDenied; | |
228 } | 225 } |
229 | 226 |
230 void ContentBrowserClient::RequestPermission( | 227 void ContentBrowserClient::RequestPermission( |
231 PermissionType permission, | 228 PermissionType permission, |
232 WebContents* web_contents, | 229 WebContents* web_contents, |
233 int bridge_id, | 230 int bridge_id, |
234 const GURL& requesting_frame, | 231 const GURL& requesting_frame, |
235 bool user_gesture, | 232 bool user_gesture, |
236 const base::Callback<void(bool)>& result_callback) { | 233 const base::Callback<void(bool)>& result_callback) { |
237 result_callback.Run(true); | 234 result_callback.Run(true); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 #endif | 340 #endif |
344 | 341 |
345 bool ContentBrowserClient::CheckMediaAccessPermission( | 342 bool ContentBrowserClient::CheckMediaAccessPermission( |
346 BrowserContext* browser_context, | 343 BrowserContext* browser_context, |
347 const GURL& security_origin, | 344 const GURL& security_origin, |
348 MediaStreamType type) { | 345 MediaStreamType type) { |
349 return false; | 346 return false; |
350 } | 347 } |
351 | 348 |
352 } // namespace content | 349 } // namespace content |
OLD | NEW |