| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
| 14 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
| 15 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
| 16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
| 17 #include "chrome_frame/bind_context_info.h" | 17 #include "chrome_frame/bind_context_info.h" |
| 18 #include "chrome_frame/chrome_frame_activex_base.h" | 18 #include "chrome_frame/chrome_frame_activex_base.h" |
| 19 #include "chrome_frame/extra_system_apis.h" | 19 #include "chrome_frame/extra_system_apis.h" |
| 20 #include "chrome_frame/html_utils.h" | 20 #include "chrome_frame/html_utils.h" |
| 21 #include "chrome_frame/urlmon_url_request_private.h" | 21 #include "chrome_frame/urlmon_url_request_private.h" |
| 22 #include "chrome_frame/urlmon_upload_data_stream.h" | 22 #include "chrome_frame/urlmon_upload_data_stream.h" |
| 23 #include "chrome_frame/utils.h" | 23 #include "chrome_frame/utils.h" |
| 24 #include "chrome/common/automation_messages.h" |
| 24 #include "net/base/load_flags.h" | 25 #include "net/base/load_flags.h" |
| 25 #include "net/http/http_response_headers.h" | 26 #include "net/http/http_response_headers.h" |
| 26 #include "net/http/http_util.h" | 27 #include "net/http/http_util.h" |
| 27 | 28 |
| 28 UrlmonUrlRequest::UrlmonUrlRequest() | 29 UrlmonUrlRequest::UrlmonUrlRequest() |
| 29 : pending_read_size_(0), | 30 : pending_read_size_(0), |
| 30 headers_received_(false), | 31 headers_received_(false), |
| 31 calling_delegate_(0), | 32 calling_delegate_(0), |
| 32 thread_(NULL), | 33 thread_(NULL), |
| 33 parent_window_(NULL), | 34 parent_window_(NULL), |
| (...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 privacy_info_.privacy_records[UTF8ToWide(url)]; | 1243 privacy_info_.privacy_records[UTF8ToWide(url)]; |
| 1243 | 1244 |
| 1244 privacy_entry.flags |= flags; | 1245 privacy_entry.flags |= flags; |
| 1245 privacy_entry.policy_ref = UTF8ToWide(policy_ref); | 1246 privacy_entry.policy_ref = UTF8ToWide(policy_ref); |
| 1246 | 1247 |
| 1247 if (fire_privacy_event && IsWindow(notification_window_)) { | 1248 if (fire_privacy_event && IsWindow(notification_window_)) { |
| 1248 PostMessage(notification_window_, WM_FIRE_PRIVACY_CHANGE_NOTIFICATION, 1, | 1249 PostMessage(notification_window_, WM_FIRE_PRIVACY_CHANGE_NOTIFICATION, 1, |
| 1249 0); | 1250 0); |
| 1250 } | 1251 } |
| 1251 } | 1252 } |
| OLD | NEW |