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> |
(...skipping 22 matching lines...) Expand all Loading... |
33 HRESULT SetRequestData(RequestData* data); | 33 HRESULT SetRequestData(RequestData* data); |
34 | 34 |
35 // Used from "OnDownloadRequestInHost". | 35 // Used from "OnDownloadRequestInHost". |
36 void StealMoniker(IMoniker** moniker); | 36 void StealMoniker(IMoniker** moniker); |
37 | 37 |
38 // Parent Window for UrlMon error dialogs | 38 // Parent Window for UrlMon error dialogs |
39 void set_parent_window(HWND parent_window) { | 39 void set_parent_window(HWND parent_window) { |
40 parent_window_ = parent_window; | 40 parent_window_ = parent_window; |
41 } | 41 } |
42 | 42 |
| 43 // This function passes information on whether ChromeFrame is running in |
| 44 // privileged mode. |
| 45 void set_privileged_mode(bool privileged_mode) { |
| 46 privileged_mode_ = privileged_mode; |
| 47 } |
| 48 |
43 protected: | 49 protected: |
44 UrlmonUrlRequest(); | 50 UrlmonUrlRequest(); |
45 ~UrlmonUrlRequest(); | 51 ~UrlmonUrlRequest(); |
46 | 52 |
47 BEGIN_COM_MAP(UrlmonUrlRequest) | 53 BEGIN_COM_MAP(UrlmonUrlRequest) |
48 COM_INTERFACE_ENTRY(IHttpNegotiate) | 54 COM_INTERFACE_ENTRY(IHttpNegotiate) |
49 COM_INTERFACE_ENTRY(IServiceProvider) | 55 COM_INTERFACE_ENTRY(IServiceProvider) |
50 COM_INTERFACE_ENTRY(IBindStatusCallback) | 56 COM_INTERFACE_ENTRY(IBindStatusCallback) |
51 COM_INTERFACE_ENTRY(IWindowForBindingUI) | 57 COM_INTERFACE_ENTRY(IWindowForBindingUI) |
52 COM_INTERFACE_ENTRY(IAuthenticate) | 58 COM_INTERFACE_ENTRY(IAuthenticate) |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 Status status_; | 301 Status status_; |
296 ScopedComPtr<IBinding> binding_; | 302 ScopedComPtr<IBinding> binding_; |
297 ScopedComPtr<IMoniker> moniker_; | 303 ScopedComPtr<IMoniker> moniker_; |
298 ScopedComPtr<IBindCtx> bind_context_; | 304 ScopedComPtr<IBindCtx> bind_context_; |
299 scoped_refptr<RequestData> request_data_; | 305 scoped_refptr<RequestData> request_data_; |
300 Cache cached_data_; | 306 Cache cached_data_; |
301 size_t pending_read_size_; | 307 size_t pending_read_size_; |
302 PlatformThreadId thread_; | 308 PlatformThreadId thread_; |
303 HWND parent_window_; | 309 HWND parent_window_; |
304 bool headers_received_; | 310 bool headers_received_; |
305 | 311 // Set to true if the ChromeFrame instance is running in privileged mode. |
| 312 bool privileged_mode_; |
306 DISALLOW_COPY_AND_ASSIGN(UrlmonUrlRequest); | 313 DISALLOW_COPY_AND_ASSIGN(UrlmonUrlRequest); |
307 }; | 314 }; |
308 | 315 |
309 #endif // CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ | 316 #endif // CHROME_FRAME_URLMON_URL_REQUEST_PRIVATE_H_ |
OLD | NEW |