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

Unified Diff: chrome/browser/net/chrome_network_delegate.h

Issue 23654014: Updated Client-Hints patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed issues raised in review by mmenke and bengr Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_network_delegate.h
diff --git a/chrome/browser/net/chrome_network_delegate.h b/chrome/browser/net/chrome_network_delegate.h
index e9bf978f1c8b1e0468dc47e4f0e1f881f87e8254..84cc989723ee73297f1b291addc140d9c1148f46 100644
--- a/chrome/browser/net/chrome_network_delegate.h
+++ b/chrome/browser/net/chrome_network_delegate.h
@@ -16,6 +16,7 @@
class CookieSettings;
class ExtensionInfoMap;
class PrefService;
+class ClientHints;
template<class T> class PrefMember;
typedef PrefMember<bool> BooleanPrefMember;
@@ -90,6 +91,9 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
force_google_safe_search_ = force_google_safe_search;
}
+ // Adds the Client Hints header to HTTP requests.
+ void SetEnableClientHints();
+
// Causes |OnCanThrottleRequest| to always return false, for all
// instances of this object.
static void NeverThrottleRequests();
@@ -207,6 +211,8 @@ class ChromeNetworkDelegate : public net::NetworkDelegate {
// Total original size of all content before it was transferred.
int64 original_content_length_;
+ scoped_ptr<ClientHints> client_hints_;
+
DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
};
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698