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

Side by Side Diff: content/public/browser/content_browser_client.cc

Issue 1708583003: Pass data saver pref value into embedded worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits Created 4 years, 9 months 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 "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
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
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
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/renderer/service_worker/embedded_worker_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698