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

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

Issue 10834313: Add histograms for network activity, and total/cumulative (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual bool OnCanSetCookie(const net::URLRequest& request, 96 virtual bool OnCanSetCookie(const net::URLRequest& request,
97 const std::string& cookie_line, 97 const std::string& cookie_line,
98 net::CookieOptions* options) OVERRIDE; 98 net::CookieOptions* options) OVERRIDE;
99 virtual bool OnCanAccessFile(const net::URLRequest& request, 99 virtual bool OnCanAccessFile(const net::URLRequest& request,
100 const FilePath& path) const OVERRIDE; 100 const FilePath& path) const OVERRIDE;
101 virtual bool OnCanThrottleRequest( 101 virtual bool OnCanThrottleRequest(
102 const net::URLRequest& request) const OVERRIDE; 102 const net::URLRequest& request) const OVERRIDE;
103 virtual int OnBeforeSocketStreamConnect( 103 virtual int OnBeforeSocketStreamConnect(
104 net::SocketStream* stream, 104 net::SocketStream* stream,
105 const net::CompletionCallback& callback) OVERRIDE; 105 const net::CompletionCallback& callback) OVERRIDE;
106 virtual void OnCacheWaitStateChange(const net::URLRequest& request, 106 virtual void OnRequestWaitStateChange(const net::URLRequest& request,
107 CacheWaitState state) OVERRIDE; 107 RequestWaitState state) OVERRIDE;
108 108
109 scoped_refptr<extensions::EventRouterForwarder> event_router_; 109 scoped_refptr<extensions::EventRouterForwarder> event_router_;
110 void* profile_; 110 void* profile_;
111 scoped_refptr<CookieSettings> cookie_settings_; 111 scoped_refptr<CookieSettings> cookie_settings_;
112 112
113 scoped_refptr<ExtensionInfoMap> extension_info_map_; 113 scoped_refptr<ExtensionInfoMap> extension_info_map_;
114 114
115 // Weak, owned by our owner. 115 // Weak, owned by our owner.
116 BooleanPrefMember* enable_referrers_; 116 BooleanPrefMember* enable_referrers_;
117 117
118 // True if OnCanThrottleRequest should always return false. 118 // True if OnCanThrottleRequest should always return false.
119 bool never_throttle_requests_; 119 bool never_throttle_requests_;
120 120
121 // Weak, owned by our owner. 121 // Weak, owned by our owner.
122 const policy::URLBlacklistManager* url_blacklist_manager_; 122 const policy::URLBlacklistManager* url_blacklist_manager_;
123 123
124 // When true, allow access to all file:// URLs. 124 // When true, allow access to all file:// URLs.
125 static bool g_allow_file_access_; 125 static bool g_allow_file_access_;
126 126
127 // Pointer to IOThread global, should outlive ChromeNetworkDelegate. 127 // Pointer to IOThread global, should outlive ChromeNetworkDelegate.
128 chrome_browser_net::CacheStats* cache_stats_; 128 chrome_browser_net::CacheStats* cache_stats_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); 130 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate);
131 }; 131 };
132 132
133 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ 133 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698