| OLD | NEW | 
|---|
| 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 CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 
| 6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 6 #define CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 
| 7 | 7 | 
| 8 #include <string> | 8 #include <string> | 
| 9 | 9 | 
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" | 
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" | 
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" | 
| 13 #include "base/values.h" | 13 #include "base/values.h" | 
|  | 14 #include "chrome/browser/net/client_hints.h" | 
| 14 #include "net/base/network_delegate.h" | 15 #include "net/base/network_delegate.h" | 
| 15 | 16 | 
| 16 class CookieSettings; | 17 class CookieSettings; | 
| 17 class ExtensionInfoMap; | 18 class ExtensionInfoMap; | 
| 18 class PrefService; | 19 class PrefService; | 
| 19 template<class T> class PrefMember; | 20 template<class T> class PrefMember; | 
| 20 | 21 | 
| 21 typedef PrefMember<bool> BooleanPrefMember; | 22 typedef PrefMember<bool> BooleanPrefMember; | 
| 22 | 23 | 
| 23 namespace base { | 24 namespace base { | 
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 196   // Pointer to IOThread global, should outlive ChromeNetworkDelegate. | 197   // Pointer to IOThread global, should outlive ChromeNetworkDelegate. | 
| 197   chrome_browser_net::LoadTimeStats* load_time_stats_; | 198   chrome_browser_net::LoadTimeStats* load_time_stats_; | 
| 198 | 199 | 
| 199   // Total size of all content (excluding headers) that has been received | 200   // Total size of all content (excluding headers) that has been received | 
| 200   // over the network. | 201   // over the network. | 
| 201   int64 received_content_length_; | 202   int64 received_content_length_; | 
| 202 | 203 | 
| 203   // Total original size of all content before it was transferred. | 204   // Total original size of all content before it was transferred. | 
| 204   int64 original_content_length_; | 205   int64 original_content_length_; | 
| 205 | 206 | 
|  | 207   scoped_refptr<ClientHints> client_hints_; | 
|  | 208 | 
| 206   DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 209   DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 
| 207 }; | 210 }; | 
| 208 | 211 | 
| 209 #endif  // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 212 #endif  // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 
| OLD | NEW | 
|---|