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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 net::URLRequest* request, | 76 net::URLRequest* request, |
77 const net::AuthChallengeInfo& auth_info, | 77 const net::AuthChallengeInfo& auth_info, |
78 const AuthCallback& callback, | 78 const AuthCallback& callback, |
79 net::AuthCredentials* credentials) OVERRIDE; | 79 net::AuthCredentials* credentials) OVERRIDE; |
80 virtual bool CanGetCookies(const net::URLRequest* request, | 80 virtual bool CanGetCookies(const net::URLRequest* request, |
81 const net::CookieList& cookie_list) OVERRIDE; | 81 const net::CookieList& cookie_list) OVERRIDE; |
82 virtual bool CanSetCookie(const net::URLRequest* request, | 82 virtual bool CanSetCookie(const net::URLRequest* request, |
83 const std::string& cookie_line, | 83 const std::string& cookie_line, |
84 net::CookieOptions* options) OVERRIDE; | 84 net::CookieOptions* options) OVERRIDE; |
85 | 85 |
86 // Adds Chrome experiment and metrics state as custom headers to |headers| | |
87 // based on local state and |request|. | |
88 void AddChromeMetricsStateHeader(net::URLRequest* request, | |
89 net::HttpRequestHeaders* headers); | |
90 | |
91 scoped_refptr<ExtensionEventRouterForwarder> event_router_; | 86 scoped_refptr<ExtensionEventRouterForwarder> event_router_; |
92 void* profile_; | 87 void* profile_; |
93 scoped_refptr<CookieSettings> cookie_settings_; | 88 scoped_refptr<CookieSettings> cookie_settings_; |
94 | 89 |
95 scoped_refptr<ExtensionInfoMap> extension_info_map_; | 90 scoped_refptr<ExtensionInfoMap> extension_info_map_; |
96 | 91 |
97 // Weak, owned by our owner. | 92 // Weak, owned by our owner. |
98 BooleanPrefMember* enable_referrers_; | 93 BooleanPrefMember* enable_referrers_; |
99 | 94 |
100 // Weak, owned by our owner. | 95 // Weak, owned by our owner. |
101 const policy::URLBlacklistManager* url_blacklist_manager_; | 96 const policy::URLBlacklistManager* url_blacklist_manager_; |
102 | 97 |
103 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 98 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
104 }; | 99 }; |
105 | 100 |
106 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 101 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |