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

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

Issue 11970002: Added Client-Hints. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments Created 7 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 side-by-side diff with in-line comments
Download patch
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 85bfd0fbb063343a161559080a71922189d148c7..edcc9d8420e2c42fc8025b1018ee4ba863ec67c3 100644
--- a/chrome/browser/net/chrome_network_delegate.h
+++ b/chrome/browser/net/chrome_network_delegate.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/values.h"
+#include "chrome/browser/net/client_hints.h"
#include "net/base/network_delegate.h"
class CookieSettings;
@@ -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 set_enable_client_hints();
+
// Causes |OnCanThrottleRequest| to always return false, for all
// instances of this object.
static void NeverThrottleRequests();
@@ -203,6 +207,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);
};

Powered by Google App Engine
This is Rietveld 408576698