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

Side by Side Diff: chrome/browser/net/chrome_network_delegate.h

Issue 63933003: Moved ExtensionInfoMap and ExtensionsQuotaService to extensions/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment fix Created 7 years, 1 month 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 | Annotate | Revision Log
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 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/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "net/base/network_delegate.h" 16 #include "net/base/network_delegate.h"
17 17
18 class ClientHints; 18 class ClientHints;
19 class CookieSettings; 19 class CookieSettings;
20 class ExtensionInfoMap;
21 class PrefService; 20 class PrefService;
22 template<class T> class PrefMember; 21 template<class T> class PrefMember;
23 22
24 typedef PrefMember<bool> BooleanPrefMember; 23 typedef PrefMember<bool> BooleanPrefMember;
25 24
26 namespace base { 25 namespace base {
27 class Value; 26 class Value;
28 } 27 }
29 28
30 namespace chrome_browser_net { 29 namespace chrome_browser_net {
31 class ConnectInterceptor; 30 class ConnectInterceptor;
32 class LoadTimeStats; 31 class LoadTimeStats;
33 class Predictor; 32 class Predictor;
34 } 33 }
35 34
36 namespace extensions { 35 namespace extensions {
37 class EventRouterForwarder; 36 class EventRouterForwarder;
37 class InfoMap;
38 } 38 }
39 39
40 namespace net { 40 namespace net {
41 class URLRequest; 41 class URLRequest;
42 } 42 }
43 43
44 namespace policy { 44 namespace policy {
45 class URLBlacklistManager; 45 class URLBlacklistManager;
46 } 46 }
47 47
48 // ChromeNetworkDelegate is the central point from within the chrome code to 48 // ChromeNetworkDelegate is the central point from within the chrome code to
49 // add hooks into the network stack. 49 // add hooks into the network stack.
50 class ChromeNetworkDelegate : public net::NetworkDelegate { 50 class ChromeNetworkDelegate : public net::NetworkDelegate {
51 public: 51 public:
52 // |enable_referrers| (and all of the other optional PrefMembers) should be 52 // |enable_referrers| (and all of the other optional PrefMembers) should be
53 // initialized on the UI thread (see below) beforehand. This object's owner is 53 // initialized on the UI thread (see below) beforehand. This object's owner is
54 // responsible for cleaning them up at shutdown. 54 // responsible for cleaning them up at shutdown.
55 ChromeNetworkDelegate(extensions::EventRouterForwarder* event_router, 55 ChromeNetworkDelegate(extensions::EventRouterForwarder* event_router,
56 BooleanPrefMember* enable_referrers); 56 BooleanPrefMember* enable_referrers);
57 virtual ~ChromeNetworkDelegate(); 57 virtual ~ChromeNetworkDelegate();
58 58
59 // Not inlined because we assign a scoped_refptr, which requires us to include 59 // Not inlined because we assign a scoped_refptr, which requires us to include
60 // the header file. 60 // the header file.
61 void set_extension_info_map(ExtensionInfoMap* extension_info_map); 61 void set_extension_info_map(extensions::InfoMap* extension_info_map);
62 62
63 void set_url_blacklist_manager( 63 void set_url_blacklist_manager(
64 const policy::URLBlacklistManager* url_blacklist_manager) { 64 const policy::URLBlacklistManager* url_blacklist_manager) {
65 url_blacklist_manager_ = url_blacklist_manager; 65 url_blacklist_manager_ = url_blacklist_manager;
66 } 66 }
67 67
68 // If |profile| is NULL or not set, events will be broadcast to all profiles, 68 // If |profile| is NULL or not set, events will be broadcast to all profiles,
69 // otherwise they will only be sent to the specified profile. 69 // otherwise they will only be sent to the specified profile.
70 void set_profile(void* profile) { 70 void set_profile(void* profile) {
71 profile_ = profile; 71 profile_ = profile;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 void AccumulateContentLength( 182 void AccumulateContentLength(
183 int64 received_payload_byte_count, int64 original_payload_byte_count, 183 int64 received_payload_byte_count, int64 original_payload_byte_count,
184 bool data_reduction_proxy_was_used); 184 bool data_reduction_proxy_was_used);
185 185
186 scoped_refptr<extensions::EventRouterForwarder> event_router_; 186 scoped_refptr<extensions::EventRouterForwarder> event_router_;
187 void* profile_; 187 void* profile_;
188 base::FilePath profile_path_; 188 base::FilePath profile_path_;
189 scoped_refptr<CookieSettings> cookie_settings_; 189 scoped_refptr<CookieSettings> cookie_settings_;
190 190
191 scoped_refptr<ExtensionInfoMap> extension_info_map_; 191 scoped_refptr<extensions::InfoMap> extension_info_map_;
192 192
193 scoped_ptr<chrome_browser_net::ConnectInterceptor> connect_interceptor_; 193 scoped_ptr<chrome_browser_net::ConnectInterceptor> connect_interceptor_;
194 194
195 // Weak, owned by our owner. 195 // Weak, owned by our owner.
196 BooleanPrefMember* enable_referrers_; 196 BooleanPrefMember* enable_referrers_;
197 BooleanPrefMember* enable_do_not_track_; 197 BooleanPrefMember* enable_do_not_track_;
198 BooleanPrefMember* force_google_safe_search_; 198 BooleanPrefMember* force_google_safe_search_;
199 199
200 // Weak, owned by our owner. 200 // Weak, owned by our owner.
201 const policy::URLBlacklistManager* url_blacklist_manager_; 201 const policy::URLBlacklistManager* url_blacklist_manager_;
(...skipping 18 matching lines...) Expand all
220 220
221 // Total original size of all content before it was transferred. 221 // Total original size of all content before it was transferred.
222 int64 original_content_length_; 222 int64 original_content_length_;
223 223
224 scoped_ptr<ClientHints> client_hints_; 224 scoped_ptr<ClientHints> client_hints_;
225 225
226 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); 226 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
227 }; 227 };
228 228
229 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 229 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/nacl_process_host.h ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698