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" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 net::URLRequest* request, | 147 net::URLRequest* request, |
148 const net::AuthChallengeInfo& auth_info, | 148 const net::AuthChallengeInfo& auth_info, |
149 const AuthCallback& callback, | 149 const AuthCallback& callback, |
150 net::AuthCredentials* credentials) OVERRIDE; | 150 net::AuthCredentials* credentials) OVERRIDE; |
151 virtual bool OnCanGetCookies(const net::URLRequest& request, | 151 virtual bool OnCanGetCookies(const net::URLRequest& request, |
152 const net::CookieList& cookie_list) OVERRIDE; | 152 const net::CookieList& cookie_list) OVERRIDE; |
153 virtual bool OnCanSetCookie(const net::URLRequest& request, | 153 virtual bool OnCanSetCookie(const net::URLRequest& request, |
154 const std::string& cookie_line, | 154 const std::string& cookie_line, |
155 net::CookieOptions* options) OVERRIDE; | 155 net::CookieOptions* options) OVERRIDE; |
156 virtual bool OnCanAccessFile(const net::URLRequest& request, | 156 virtual bool OnCanAccessFile(const net::URLRequest& request, |
157 const FilePath& path) const OVERRIDE; | 157 const base::FilePath& path) const OVERRIDE; |
158 virtual bool OnCanThrottleRequest( | 158 virtual bool OnCanThrottleRequest( |
159 const net::URLRequest& request) const OVERRIDE; | 159 const net::URLRequest& request) const OVERRIDE; |
160 virtual int OnBeforeSocketStreamConnect( | 160 virtual int OnBeforeSocketStreamConnect( |
161 net::SocketStream* stream, | 161 net::SocketStream* stream, |
162 const net::CompletionCallback& callback) OVERRIDE; | 162 const net::CompletionCallback& callback) OVERRIDE; |
163 virtual void OnRequestWaitStateChange(const net::URLRequest& request, | 163 virtual void OnRequestWaitStateChange(const net::URLRequest& request, |
164 RequestWaitState state) OVERRIDE; | 164 RequestWaitState state) OVERRIDE; |
165 | 165 |
166 void AccumulateContentLength( | 166 void AccumulateContentLength( |
167 int64 received_payload_byte_count, int64 original_payload_byte_count); | 167 int64 received_payload_byte_count, int64 original_payload_byte_count); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // over the network. | 200 // over the network. |
201 int64 received_content_length_; | 201 int64 received_content_length_; |
202 | 202 |
203 // Total original size of all content before it was transferred. | 203 // Total original size of all content before it was transferred. |
204 int64 original_content_length_; | 204 int64 original_content_length_; |
205 | 205 |
206 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); | 206 DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
207 }; | 207 }; |
208 | 208 |
209 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ | 209 #endif // CHROME_BROWSER_NET_CHROME_NETWORK_DELEGATE_H_ |
OLD | NEW |