OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/threading/platform_thread.h" |
13 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
14 #include "net/http/http_response_headers.h" | 15 #include "net/http/http_response_headers.h" |
15 #include "net/url_request/url_request_status.h" | 16 #include "net/url_request/url_request_status.h" |
16 #include "testing/gtest/include/gtest/gtest_prod.h" | 17 #include "testing/gtest/include/gtest/gtest_prod.h" |
17 | 18 |
18 class RequestData; | 19 class RequestData; |
19 | 20 |
20 class UrlmonUrlRequest | 21 class UrlmonUrlRequest |
21 : public CComObjectRootEx<CComMultiThreadModel>, | 22 : public CComObjectRootEx<CComMultiThreadModel>, |
22 public PluginUrlRequest, | 23 public PluginUrlRequest, |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 }; | 227 }; |
227 | 228 |
228 Status status_; | 229 Status status_; |
229 ScopedComPtr<IBinding> binding_; | 230 ScopedComPtr<IBinding> binding_; |
230 ScopedComPtr<IMoniker> moniker_; | 231 ScopedComPtr<IMoniker> moniker_; |
231 ScopedComPtr<IBindCtx> bind_context_; | 232 ScopedComPtr<IBindCtx> bind_context_; |
232 ScopedComPtr<IStream> cache_; | 233 ScopedComPtr<IStream> cache_; |
233 ScopedComPtr<IStream> pending_data_; | 234 ScopedComPtr<IStream> pending_data_; |
234 | 235 |
235 size_t pending_read_size_; | 236 size_t pending_read_size_; |
236 PlatformThreadId thread_; | 237 base::PlatformThreadId thread_; |
237 HWND parent_window_; | 238 HWND parent_window_; |
238 bool headers_received_; | 239 bool headers_received_; |
239 int calling_delegate_; // re-entrancy protection. | 240 int calling_delegate_; // re-entrancy protection. |
240 // Set to true if the ChromeFrame instance is running in privileged mode. | 241 // Set to true if the ChromeFrame instance is running in privileged mode. |
241 bool privileged_mode_; | 242 bool privileged_mode_; |
242 bool pending_; | 243 bool pending_; |
243 scoped_ptr<TerminateBindCallback> terminate_bind_callback_; | 244 scoped_ptr<TerminateBindCallback> terminate_bind_callback_; |
244 std::string response_headers_; | 245 std::string response_headers_; |
245 // Defaults to true and indicates whether we want to keep the original | 246 // Defaults to true and indicates whether we want to keep the original |
246 // transaction alive when we receive the last data notification from | 247 // transaction alive when we receive the last data notification from |
247 // urlmon. | 248 // urlmon. |
248 bool is_expecting_download_; | 249 bool is_expecting_download_; |
249 // Set to true if the Urlmon transaction object needs to be cleaned up | 250 // Set to true if the Urlmon transaction object needs to be cleaned up |
250 // when this object is destroyed. Happens if we return | 251 // when this object is destroyed. Happens if we return |
251 // INET_E_TERMINATE_BIND from OnDataAvailable in the last data notification. | 252 // INET_E_TERMINATE_BIND from OnDataAvailable in the last data notification. |
252 bool cleanup_transaction_; | 253 bool cleanup_transaction_; |
253 | 254 |
254 DISALLOW_COPY_AND_ASSIGN(UrlmonUrlRequest); | 255 DISALLOW_COPY_AND_ASSIGN(UrlmonUrlRequest); |
255 }; | 256 }; |
256 | 257 |
257 #endif // CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ | 258 #endif // CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ |
OLD | NEW |