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

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: Created 4 years, 10 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 #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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // with the given scope. 340 // with the given scope.
341 // Invalid (-1) process/frame ids indicate this is for starting a service 341 // Invalid (-1) process/frame ids indicate this is for starting a service
342 // worker, which is not necessarily associated with a particular frame. 342 // worker, which is not necessarily associated with a particular frame.
343 // This is called on the IO thread. 343 // This is called on the IO thread.
344 virtual bool AllowServiceWorker(const GURL& scope, 344 virtual bool AllowServiceWorker(const GURL& scope,
345 const GURL& first_party, 345 const GURL& first_party,
346 content::ResourceContext* context, 346 content::ResourceContext* context,
347 int render_process_id, 347 int render_process_id,
348 int render_frame_id); 348 int render_frame_id);
349 349
350 virtual bool IsDataSaverEnabled(BrowserContext* context);
351
350 // Allow the embedder to control if the given cookie can be read. 352 // Allow the embedder to control if the given cookie can be read.
351 // This is called on the IO thread. 353 // This is called on the IO thread.
352 virtual bool AllowGetCookie(const GURL& url, 354 virtual bool AllowGetCookie(const GURL& url,
353 const GURL& first_party, 355 const GURL& first_party,
354 const net::CookieList& cookie_list, 356 const net::CookieList& cookie_list,
355 ResourceContext* context, 357 ResourceContext* context,
356 int render_process_id, 358 int render_process_id,
357 int render_frame_id); 359 int render_frame_id);
358 360
359 // Allow the embedder to control if the given cookie can be set. 361 // Allow the embedder to control if the given cookie can be set.
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 759 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
758 // implementation. Return nullptr to disable external surface video. 760 // implementation. Return nullptr to disable external surface video.
759 virtual ExternalVideoSurfaceContainer* 761 virtual ExternalVideoSurfaceContainer*
760 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 762 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
761 #endif 763 #endif
762 }; 764 };
763 765
764 } // namespace content 766 } // namespace content
765 767
766 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 768 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698