Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1419)

Side by Side Diff: chrome_frame/urlmon_url_request.cc

Issue 3760003: Merge 62500 - Fix a regression in ChromeFrame which caused download attachmen... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/517/src/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698