| 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_CHROME_FRAME_AUTOMATION_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlwin.h> | 9 #include <atlwin.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 bool AddRequest(PluginUrlRequest* request); | 233 bool AddRequest(PluginUrlRequest* request); |
| 234 void RemoveRequest(PluginUrlRequest* request); | 234 void RemoveRequest(PluginUrlRequest* request); |
| 235 virtual bool Send(IPC::Message* msg); | 235 virtual bool Send(IPC::Message* msg); |
| 236 | 236 |
| 237 // URL request related | 237 // URL request related |
| 238 bool ReadRequest(int request_id, int bytes_to_read); | 238 bool ReadRequest(int request_id, int bytes_to_read); |
| 239 void RemoveRequest(int request_id, int reason, bool abort); | 239 void RemoveRequest(int request_id, int reason, bool abort); |
| 240 PluginUrlRequest* LookupRequest(int request_id) const; | 240 PluginUrlRequest* LookupRequest(int request_id) const; |
| 241 bool IsValidRequest(PluginUrlRequest* request) const; | 241 bool IsValidRequest(PluginUrlRequest* request) const; |
| 242 void CleanupRequests(); | 242 void CleanupRequests(); |
| 243 // For IE the host network stack requests are issued on a separate thread, |
| 244 // which requires the requests to be cleaned up asynchronously. |
| 245 void CleanupAsyncRequests(); |
| 243 | 246 |
| 244 void set_use_chrome_network(bool use_chrome_network) { | 247 void set_use_chrome_network(bool use_chrome_network) { |
| 245 use_chrome_network_ = use_chrome_network; | 248 use_chrome_network_ = use_chrome_network; |
| 246 } | 249 } |
| 247 bool use_chrome_network() const { | 250 bool use_chrome_network() const { |
| 248 return use_chrome_network_; | 251 return use_chrome_network_; |
| 249 } | 252 } |
| 250 | 253 |
| 251 #ifdef UNIT_TEST | 254 #ifdef UNIT_TEST |
| 252 void set_proxy_factory(ProxyFactory* factory) { | 255 void set_proxy_factory(ProxyFactory* factory) { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 InitializationState init_state_; | 348 InitializationState init_state_; |
| 346 bool use_chrome_network_; | 349 bool use_chrome_network_; |
| 347 bool handle_top_level_requests_; | 350 bool handle_top_level_requests_; |
| 348 ProxyFactory* proxy_factory_; | 351 ProxyFactory* proxy_factory_; |
| 349 int tab_handle_; | 352 int tab_handle_; |
| 350 // Only used if we attach to an existing tab. | 353 // Only used if we attach to an existing tab. |
| 351 intptr_t external_tab_cookie_; | 354 intptr_t external_tab_cookie_; |
| 352 }; | 355 }; |
| 353 | 356 |
| 354 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 357 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
| OLD | NEW |