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_H_ | 5 #ifndef CHROME_FRAME_URLMON_URL_REQUEST_H_ |
6 #define CHROME_FRAME_URLMON_URL_REQUEST_H_ | 6 #define CHROME_FRAME_URLMON_URL_REQUEST_H_ |
7 | 7 |
8 #include <urlmon.h> | 8 #include <urlmon.h> |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlcom.h> | 10 #include <atlcom.h> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 void set_privileged_mode(bool privileged_mode) { | 76 void set_privileged_mode(bool privileged_mode) { |
77 privileged_mode_ = privileged_mode; | 77 privileged_mode_ = privileged_mode; |
78 } | 78 } |
79 | 79 |
80 void set_container(IUnknown* container) { | 80 void set_container(IUnknown* container) { |
81 container_ = container; | 81 container_ = container; |
82 } | 82 } |
83 | 83 |
84 private: | 84 private: |
85 friend class MessageLoop; | 85 friend class MessageLoop; |
86 friend struct RunnableMethodTraits<UrlmonUrlRequestManager>; | |
87 | |
88 // This method is needed to support PostTask on this object. | |
89 static bool ImplementsThreadSafeReferenceCounting() { return true; } | |
90 | |
91 void AddRef() {} | |
92 void Release() {} | |
93 | 86 |
94 // PluginUrlRequestManager implementation. | 87 // PluginUrlRequestManager implementation. |
95 virtual PluginUrlRequestManager::ThreadSafeFlags GetThreadSafeFlags(); | 88 virtual PluginUrlRequestManager::ThreadSafeFlags GetThreadSafeFlags(); |
96 virtual void StartRequest(int request_id, | 89 virtual void StartRequest(int request_id, |
97 const AutomationURLRequest& request_info); | 90 const AutomationURLRequest& request_info); |
98 virtual void ReadRequest(int request_id, int bytes_to_read); | 91 virtual void ReadRequest(int request_id, int bytes_to_read); |
99 virtual void EndRequest(int request_id); | 92 virtual void EndRequest(int request_id); |
100 virtual void DownloadRequestInHost(int request_id); | 93 virtual void DownloadRequestInHost(int request_id); |
101 virtual void StopAll(); | 94 virtual void StopAll(); |
102 virtual void GetCookiesForUrl(const GURL& url, int cookie_id); | 95 virtual void GetCookiesForUrl(const GURL& url, int cookie_id); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // The window to be used to fire notifications on. | 153 // The window to be used to fire notifications on. |
161 HWND notification_window_; | 154 HWND notification_window_; |
162 // Set to true if the ChromeFrame instance is running in privileged mode. | 155 // Set to true if the ChromeFrame instance is running in privileged mode. |
163 bool privileged_mode_; | 156 bool privileged_mode_; |
164 // A pointer to the containing object. We maintain a weak reference to avoid | 157 // A pointer to the containing object. We maintain a weak reference to avoid |
165 // lifetime issues. | 158 // lifetime issues. |
166 IUnknown* container_; | 159 IUnknown* container_; |
167 }; | 160 }; |
168 | 161 |
169 #endif // CHROME_FRAME_URLMON_URL_REQUEST_H_ | 162 #endif // CHROME_FRAME_URLMON_URL_REQUEST_H_ |
OLD | NEW |