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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 #if defined(VIDEO_HOLE) | 437 #if defined(VIDEO_HOLE) |
434 ExternalVideoSurfaceContainer* | 438 ExternalVideoSurfaceContainer* |
435 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 439 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
436 WebContents* web_contents) { | 440 WebContents* web_contents) { |
437 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 441 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
438 return nullptr; | 442 return nullptr; |
439 } | 443 } |
440 #endif | 444 #endif |
441 | 445 |
442 } // namespace content | 446 } // namespace content |
OLD | NEW |