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 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 pending_request_->InitPending(start_url, moniker, bind_ctx, | 957 pending_request_->InitPending(start_url, moniker, bind_ctx, |
958 enable_frame_busting_, privileged_mode_, | 958 enable_frame_busting_, privileged_mode_, |
959 notification_window_, cache); | 959 notification_window_, cache); |
960 // Start the request | 960 // Start the request |
961 bool is_started = pending_request_->Start(); | 961 bool is_started = pending_request_->Start(); |
962 DCHECK(is_started); | 962 DCHECK(is_started); |
963 } | 963 } |
964 } | 964 } |
965 | 965 |
966 void UrlmonUrlRequestManager::StartRequest(int request_id, | 966 void UrlmonUrlRequestManager::StartRequest(int request_id, |
967 const IPC::AutomationURLRequest& request_info) { | 967 const AutomationURLRequest& request_info) { |
968 DVLOG(1) << __FUNCTION__ << " id: " << request_id; | 968 DVLOG(1) << __FUNCTION__ << " id: " << request_id; |
969 DCHECK_EQ(0, calling_delegate_); | 969 DCHECK_EQ(0, calling_delegate_); |
970 | 970 |
971 if (stopping_) { | 971 if (stopping_) { |
972 DLOG(WARNING) << __FUNCTION__ << " request not started (stopping)"; | 972 DLOG(WARNING) << __FUNCTION__ << " request not started (stopping)"; |
973 return; | 973 return; |
974 } | 974 } |
975 | 975 |
976 DCHECK(request_map_.find(request_id) == request_map_.end()); | 976 DCHECK(request_map_.find(request_id) == request_map_.end()); |
977 DCHECK(GURL(request_info.url).is_valid()); | 977 DCHECK(GURL(request_info.url).is_valid()); |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1237 privacy_info_.privacy_records[UTF8ToWide(url)]; | 1237 privacy_info_.privacy_records[UTF8ToWide(url)]; |
1238 | 1238 |
1239 privacy_entry.flags |= flags; | 1239 privacy_entry.flags |= flags; |
1240 privacy_entry.policy_ref = UTF8ToWide(policy_ref); | 1240 privacy_entry.policy_ref = UTF8ToWide(policy_ref); |
1241 | 1241 |
1242 if (fire_privacy_event && IsWindow(notification_window_)) { | 1242 if (fire_privacy_event && IsWindow(notification_window_)) { |
1243 PostMessage(notification_window_, WM_FIRE_PRIVACY_CHANGE_NOTIFICATION, 1, | 1243 PostMessage(notification_window_, WM_FIRE_PRIVACY_CHANGE_NOTIFICATION, 1, |
1244 0); | 1244 0); |
1245 } | 1245 } |
1246 } | 1246 } |
OLD | NEW |