| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 bool* in_memory) { | 196 bool* in_memory) { |
| 197 partition_domain->clear(); | 197 partition_domain->clear(); |
| 198 partition_name->clear(); | 198 partition_name->clear(); |
| 199 *in_memory = false; | 199 *in_memory = false; |
| 200 } | 200 } |
| 201 | 201 |
| 202 MediaObserver* ContentBrowserClient::GetMediaObserver() { | 202 MediaObserver* ContentBrowserClient::GetMediaObserver() { |
| 203 return NULL; | 203 return NULL; |
| 204 } | 204 } |
| 205 | 205 |
| 206 WebKit::WebNotificationPresenter::Permission | 206 blink::WebNotificationPresenter::Permission |
| 207 ContentBrowserClient::CheckDesktopNotificationPermission( | 207 ContentBrowserClient::CheckDesktopNotificationPermission( |
| 208 const GURL& source_origin, | 208 const GURL& source_origin, |
| 209 ResourceContext* context, | 209 ResourceContext* context, |
| 210 int render_process_id) { | 210 int render_process_id) { |
| 211 return WebKit::WebNotificationPresenter::PermissionAllowed; | 211 return blink::WebNotificationPresenter::PermissionAllowed; |
| 212 } | 212 } |
| 213 | 213 |
| 214 bool ContentBrowserClient::CanCreateWindow( | 214 bool ContentBrowserClient::CanCreateWindow( |
| 215 const GURL& opener_url, | 215 const GURL& opener_url, |
| 216 const GURL& opener_top_level_frame_url, | 216 const GURL& opener_top_level_frame_url, |
| 217 const GURL& source_origin, | 217 const GURL& source_origin, |
| 218 WindowContainerType container_type, | 218 WindowContainerType container_type, |
| 219 const GURL& target_url, | 219 const GURL& target_url, |
| 220 const content::Referrer& referrer, | 220 const content::Referrer& referrer, |
| 221 WindowOpenDisposition disposition, | 221 WindowOpenDisposition disposition, |
| 222 const WebKit::WebWindowFeatures& features, | 222 const blink::WebWindowFeatures& features, |
| 223 bool user_gesture, | 223 bool user_gesture, |
| 224 bool opener_suppressed, | 224 bool opener_suppressed, |
| 225 content::ResourceContext* context, | 225 content::ResourceContext* context, |
| 226 int render_process_id, | 226 int render_process_id, |
| 227 bool is_guest, | 227 bool is_guest, |
| 228 int opener_id, | 228 int opener_id, |
| 229 bool* no_javascript_access) { | 229 bool* no_javascript_access) { |
| 230 *no_javascript_access = false; | 230 *no_javascript_access = false; |
| 231 return true; | 231 return true; |
| 232 } | 232 } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 } | 301 } |
| 302 #endif | 302 #endif |
| 303 | 303 |
| 304 bool ContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle( | 304 bool ContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle( |
| 305 content::BrowserContext* browser_context, | 305 content::BrowserContext* browser_context, |
| 306 const GURL& url) { | 306 const GURL& url) { |
| 307 return false; | 307 return false; |
| 308 } | 308 } |
| 309 | 309 |
| 310 } // namespace content | 310 } // namespace content |
| OLD | NEW |