| 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 "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/public/browser/client_certificate_delegate.h" | 9 #include "content/public/browser/client_certificate_delegate.h" |
| 10 #include "content/public/common/sandbox_type.h" | 10 #include "content/public/common/sandbox_type.h" |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 | 155 |
| 156 bool ContentBrowserClient::AllowServiceWorker(const GURL& scope, | 156 bool ContentBrowserClient::AllowServiceWorker(const GURL& scope, |
| 157 const GURL& document_url, | 157 const GURL& document_url, |
| 158 content::ResourceContext* context, | 158 content::ResourceContext* context, |
| 159 int render_process_id, | 159 int render_process_id, |
| 160 int render_frame_id) { | 160 int render_frame_id) { |
| 161 return true; | 161 return true; |
| 162 } | 162 } |
| 163 | 163 |
| 164 bool ContentBrowserClient::IsDataSaverEnabled(BrowserContext* context) { |
| 165 return false; |
| 166 } |
| 167 |
| 164 bool ContentBrowserClient::AllowGetCookie(const GURL& url, | 168 bool ContentBrowserClient::AllowGetCookie(const GURL& url, |
| 165 const GURL& first_party, | 169 const GURL& first_party, |
| 166 const net::CookieList& cookie_list, | 170 const net::CookieList& cookie_list, |
| 167 ResourceContext* context, | 171 ResourceContext* context, |
| 168 int render_process_id, | 172 int render_process_id, |
| 169 int render_frame_id) { | 173 int render_frame_id) { |
| 170 return true; | 174 return true; |
| 171 } | 175 } |
| 172 | 176 |
| 173 bool ContentBrowserClient::AllowSetCookie(const GURL& url, | 177 bool ContentBrowserClient::AllowSetCookie(const GURL& url, |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 #if defined(VIDEO_HOLE) | 420 #if defined(VIDEO_HOLE) |
| 417 ExternalVideoSurfaceContainer* | 421 ExternalVideoSurfaceContainer* |
| 418 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 422 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 419 WebContents* web_contents) { | 423 WebContents* web_contents) { |
| 420 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 424 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
| 421 return nullptr; | 425 return nullptr; |
| 422 } | 426 } |
| 423 #endif | 427 #endif |
| 424 | 428 |
| 425 } // namespace content | 429 } // namespace content |
| OLD | NEW |