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

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

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
« no previous file with comments | « content/content_common.gypi ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // with the given scope. 344 // with the given scope.
345 // Invalid (-1) process/frame ids indicate this is for starting a service 345 // Invalid (-1) process/frame ids indicate this is for starting a service
346 // worker, which is not necessarily associated with a particular frame. 346 // worker, which is not necessarily associated with a particular frame.
347 // This is called on the IO thread. 347 // This is called on the IO thread.
348 virtual bool AllowServiceWorker(const GURL& scope, 348 virtual bool AllowServiceWorker(const GURL& scope,
349 const GURL& first_party, 349 const GURL& first_party,
350 content::ResourceContext* context, 350 content::ResourceContext* context,
351 int render_process_id, 351 int render_process_id,
352 int render_frame_id); 352 int render_frame_id);
353 353
354 virtual bool IsDataSaverEnabled(BrowserContext* context);
355
354 // Allow the embedder to control if the given cookie can be read. 356 // Allow the embedder to control if the given cookie can be read.
355 // This is called on the IO thread. 357 // This is called on the IO thread.
356 virtual bool AllowGetCookie(const GURL& url, 358 virtual bool AllowGetCookie(const GURL& url,
357 const GURL& first_party, 359 const GURL& first_party,
358 const net::CookieList& cookie_list, 360 const net::CookieList& cookie_list,
359 ResourceContext* context, 361 ResourceContext* context,
360 int render_process_id, 362 int render_process_id,
361 int render_frame_id); 363 int render_frame_id);
362 364
363 // Allow the embedder to control if the given cookie can be set. 365 // Allow the embedder to control if the given cookie can be set.
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 777 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
776 // implementation. Return nullptr to disable external surface video. 778 // implementation. Return nullptr to disable external surface video.
777 virtual ExternalVideoSurfaceContainer* 779 virtual ExternalVideoSurfaceContainer*
778 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 780 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
779 #endif 781 #endif
780 }; 782 };
781 783
782 } // namespace content 784 } // namespace content
783 785
784 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 786 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698