summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_automation.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/chrome_frame_automation.cc')
-rw-r--r--chrome_frame/chrome_frame_automation.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc
index ecbca0c..4529ca3 100644
--- a/chrome_frame/chrome_frame_automation.cc
+++ b/chrome_frame/chrome_frame_automation.cc
@@ -1049,6 +1049,21 @@ void ChromeFrameAutomationClient::CleanupRequests() {
request_map_.clear();
}
+void ChromeFrameAutomationClient::CleanupAsyncRequests() {
+ RequestMap::iterator index = request_map_.begin();
+ while (index != request_map_.end()) {
+ PluginUrlRequest* request = (*index).second;
+ if (request) {
+ int request_id = request->id();
+ request->Stop();
+ }
+ index++;
+ }
+
+ DCHECK(request_map_.empty());
+ request_map_.clear();
+}
+
bool ChromeFrameAutomationClient::Reinitialize(
ChromeFrameDelegate* delegate) {
if (!tab_.get() || !::IsWindow(chrome_window_)) {