| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ | 5 #ifndef CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ |
| 6 #define CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ | 6 #define CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 result_.set_os_error(HresultToNetError(hr)); | 221 result_.set_os_error(HresultToNetError(hr)); |
| 222 } | 222 } |
| 223 | 223 |
| 224 private: | 224 private: |
| 225 Redirection redirect_; | 225 Redirection redirect_; |
| 226 State state_; | 226 State state_; |
| 227 net::URLRequestStatus result_; | 227 net::URLRequestStatus result_; |
| 228 }; | 228 }; |
| 229 | 229 |
| 230 Status status_; | 230 Status status_; |
| 231 ScopedComPtr<IBinding> binding_; | 231 base::win::ScopedComPtr<IBinding> binding_; |
| 232 ScopedComPtr<IMoniker> moniker_; | 232 base::win::ScopedComPtr<IMoniker> moniker_; |
| 233 ScopedComPtr<IBindCtx> bind_context_; | 233 base::win::ScopedComPtr<IBindCtx> bind_context_; |
| 234 ScopedComPtr<IStream> cache_; | 234 base::win::ScopedComPtr<IStream> cache_; |
| 235 ScopedComPtr<IStream> pending_data_; | 235 base::win::ScopedComPtr<IStream> pending_data_; |
| 236 | 236 |
| 237 size_t pending_read_size_; | 237 size_t pending_read_size_; |
| 238 base::PlatformThreadId thread_; | 238 base::PlatformThreadId thread_; |
| 239 HWND parent_window_; | 239 HWND parent_window_; |
| 240 bool headers_received_; | 240 bool headers_received_; |
| 241 int calling_delegate_; // re-entrancy protection. | 241 int calling_delegate_; // re-entrancy protection. |
| 242 // Set to true if the ChromeFrame instance is running in privileged mode. | 242 // Set to true if the ChromeFrame instance is running in privileged mode. |
| 243 bool privileged_mode_; | 243 bool privileged_mode_; |
| 244 bool pending_; | 244 bool pending_; |
| 245 scoped_ptr<TerminateBindCallback> terminate_bind_callback_; | 245 scoped_ptr<TerminateBindCallback> terminate_bind_callback_; |
| 246 std::string response_headers_; | 246 std::string response_headers_; |
| 247 // Defaults to true and indicates whether we want to keep the original | 247 // Defaults to true and indicates whether we want to keep the original |
| 248 // transaction alive when we receive the last data notification from | 248 // transaction alive when we receive the last data notification from |
| 249 // urlmon. | 249 // urlmon. |
| 250 bool is_expecting_download_; | 250 bool is_expecting_download_; |
| 251 // Set to true if the Urlmon transaction object needs to be cleaned up | 251 // Set to true if the Urlmon transaction object needs to be cleaned up |
| 252 // when this object is destroyed. Happens if we return | 252 // when this object is destroyed. Happens if we return |
| 253 // INET_E_TERMINATE_BIND from OnDataAvailable in the last data notification. | 253 // INET_E_TERMINATE_BIND from OnDataAvailable in the last data notification. |
| 254 bool cleanup_transaction_; | 254 bool cleanup_transaction_; |
| 255 // Copy of the request headers. | 255 // Copy of the request headers. |
| 256 std::string request_headers_; | 256 std::string request_headers_; |
| 257 | 257 |
| 258 DISALLOW_COPY_AND_ASSIGN(UrlmonUrlRequest); | 258 DISALLOW_COPY_AND_ASSIGN(UrlmonUrlRequest); |
| 259 }; | 259 }; |
| 260 | 260 |
| 261 #endif // CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ | 261 #endif // CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ |
| OLD | NEW |