| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 const char* headers, int size, | 94 const char* headers, int size, |
| 95 base::Time last_modified, | 95 base::Time last_modified, |
| 96 const std::string& redirect_url, | 96 const std::string& redirect_url, |
| 97 int redirect_status); | 97 int redirect_status); |
| 98 virtual void OnReadComplete(int request_id, const std::string& data); | 98 virtual void OnReadComplete(int request_id, const std::string& data); |
| 99 virtual void OnResponseEnd(int request_id, const URLRequestStatus& status); | 99 virtual void OnResponseEnd(int request_id, const URLRequestStatus& status); |
| 100 virtual void OnCookiesRetrieved(bool success, const GURL& url, | 100 virtual void OnCookiesRetrieved(bool success, const GURL& url, |
| 101 const std::string& cookie_string, | 101 const std::string& cookie_string, |
| 102 int cookie_id); | 102 int cookie_id); |
| 103 | 103 |
| 104 // This method is passed as a callback to UrlmonUrlRequest::TerminateBind. |
| 105 // We simply forward moniker and bind_ctx to host ActiveX/ActiveDocument, |
| 106 // so it may start NavigateWithBindContext. |
| 107 void BindTerminated(IMoniker* moniker, IBindCtx* bind_ctx); |
| 108 |
| 104 // Map for (request_id <-> UrlmonUrlRequest) | 109 // Map for (request_id <-> UrlmonUrlRequest) |
| 105 typedef std::map<int, scoped_refptr<UrlmonUrlRequest> > RequestMap; | 110 typedef std::map<int, scoped_refptr<UrlmonUrlRequest> > RequestMap; |
| 106 RequestMap request_map_; | 111 RequestMap request_map_; |
| 107 scoped_refptr<UrlmonUrlRequest> LookupRequest(int request_id); | 112 scoped_refptr<UrlmonUrlRequest> LookupRequest(int request_id); |
| 108 scoped_refptr<UrlmonUrlRequest> pending_request_; | 113 scoped_refptr<UrlmonUrlRequest> pending_request_; |
| 109 | 114 |
| 110 bool stopping_; | 115 bool stopping_; |
| 111 int calling_delegate_; // re-entrancy protection (debug only check) | 116 int calling_delegate_; // re-entrancy protection (debug only check) |
| 112 | 117 |
| 113 Lock privacy_info_lock_; | 118 Lock privacy_info_lock_; |
| 114 PrivacyInfo privacy_info_; | 119 PrivacyInfo privacy_info_; |
| 115 // The window to be used to fire notifications on. | 120 // The window to be used to fire notifications on. |
| 116 HWND notification_window_; | 121 HWND notification_window_; |
| 117 // Set to true if the ChromeFrame instance is running in privileged mode. | 122 // Set to true if the ChromeFrame instance is running in privileged mode. |
| 118 bool privileged_mode_; | 123 bool privileged_mode_; |
| 119 }; | 124 }; |
| 120 | 125 |
| 121 #endif // CHROME_FRAME_URLMON_URL_REQUEST_H_ | 126 #endif // CHROME_FRAME_URLMON_URL_REQUEST_H_ |
| 122 | 127 |
| OLD | NEW |