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 #include "chrome_frame/urlmon_url_request.h" | 5 #include "chrome_frame/urlmon_url_request.h" |
6 | 6 |
7 #include <wininet.h> | 7 #include <wininet.h> |
8 #include <urlmon.h> | 8 #include <urlmon.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 // GetBindInfo call as per contract but the return values are | 149 // GetBindInfo call as per contract but the return values are |
150 // ignored. So just set "get" as a method to make our GetBindInfo | 150 // ignored. So just set "get" as a method to make our GetBindInfo |
151 // implementation happy. | 151 // implementation happy. |
152 method_ = "get"; | 152 method_ = "get"; |
153 return S_OK; | 153 return S_OK; |
154 } | 154 } |
155 | 155 |
156 void UrlmonUrlRequest::TerminateBind(TerminateBindCallback* callback) { | 156 void UrlmonUrlRequest::TerminateBind(TerminateBindCallback* callback) { |
157 DCHECK_EQ(thread_, PlatformThread::CurrentId()); | 157 DCHECK_EQ(thread_, PlatformThread::CurrentId()); |
158 DLOG(INFO) << __FUNCTION__ << me(); | 158 DLOG(INFO) << __FUNCTION__ << me(); |
| 159 cleanup_transaction_ = false; |
159 if (status_.get_state() == Status::DONE) { | 160 if (status_.get_state() == Status::DONE) { |
160 // Binding is stopped. Note result could be an error. | 161 // Binding is stopped. Note result could be an error. |
161 callback->Run(moniker_, bind_context_); | 162 callback->Run(moniker_, bind_context_); |
162 delete callback; | 163 delete callback; |
163 } else { | 164 } else { |
164 // WORKING (ABORTING?). Save the callback. | 165 // WORKING (ABORTING?). Save the callback. |
165 // Now we will return INET_TERMINATE_BIND from ::OnDataAvailable() and in | 166 // Now we will return INET_TERMINATE_BIND from ::OnDataAvailable() and in |
166 // ::OnStopBinding will invoke the callback passing our moniker and | 167 // ::OnStopBinding will invoke the callback passing our moniker and |
167 // bind context. | 168 // bind context. |
168 terminate_bind_callback_.reset(callback); | 169 terminate_bind_callback_.reset(callback); |
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1200 privacy_info_.privacy_records[UTF8ToWide(url)]; | 1201 privacy_info_.privacy_records[UTF8ToWide(url)]; |
1201 | 1202 |
1202 privacy_entry.flags |= flags; | 1203 privacy_entry.flags |= flags; |
1203 privacy_entry.policy_ref = UTF8ToWide(policy_ref); | 1204 privacy_entry.policy_ref = UTF8ToWide(policy_ref); |
1204 | 1205 |
1205 if (fire_privacy_event && IsWindow(notification_window_)) { | 1206 if (fire_privacy_event && IsWindow(notification_window_)) { |
1206 PostMessage(notification_window_, WM_FIRE_PRIVACY_CHANGE_NOTIFICATION, 1, | 1207 PostMessage(notification_window_, WM_FIRE_PRIVACY_CHANGE_NOTIFICATION, 1, |
1207 0); | 1208 0); |
1208 } | 1209 } |
1209 } | 1210 } |
OLD | NEW |