OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <urlmon.h> | 7 #include <urlmon.h> |
8 #include <wininet.h> | 8 #include <wininet.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1401 : stopping_(false), notification_window_(NULL), | 1401 : stopping_(false), notification_window_(NULL), |
1402 privileged_mode_(false), | 1402 privileged_mode_(false), |
1403 container_(NULL), | 1403 container_(NULL), |
1404 background_worker_thread_enabled_(true) { | 1404 background_worker_thread_enabled_(true) { |
1405 background_thread_.reset(new base::Thread("cf_iexplore_background_thread")); | 1405 background_thread_.reset(new base::Thread("cf_iexplore_background_thread")); |
1406 background_thread_->init_com_with_mta(false); | 1406 background_thread_->init_com_with_mta(false); |
1407 background_worker_thread_enabled_ = | 1407 background_worker_thread_enabled_ = |
1408 GetConfigBool(true, kUseBackgroundThreadForSubResources); | 1408 GetConfigBool(true, kUseBackgroundThreadForSubResources); |
1409 if (background_worker_thread_enabled_) { | 1409 if (background_worker_thread_enabled_) { |
1410 base::Thread::Options options; | 1410 base::Thread::Options options; |
1411 options.message_loop_type = MessageLoop::TYPE_UI; | 1411 options.message_loop_type = base::MessageLoop::TYPE_UI; |
1412 background_thread_->StartWithOptions(options); | 1412 background_thread_->StartWithOptions(options); |
1413 } | 1413 } |
1414 } | 1414 } |
1415 | 1415 |
1416 UrlmonUrlRequestManager::~UrlmonUrlRequestManager() { | 1416 UrlmonUrlRequestManager::~UrlmonUrlRequestManager() { |
1417 StopAll(); | 1417 StopAll(); |
1418 } | 1418 } |
1419 | 1419 |
1420 void UrlmonUrlRequestManager::AddPrivacyDataForUrl( | 1420 void UrlmonUrlRequestManager::AddPrivacyDataForUrl( |
1421 const std::string& url, const std::string& policy_ref, | 1421 const std::string& url, const std::string& policy_ref, |
(...skipping 17 matching lines...) Expand all Loading... |
1439 privacy_info_.privacy_records[UTF8ToWide(url)]; | 1439 privacy_info_.privacy_records[UTF8ToWide(url)]; |
1440 | 1440 |
1441 privacy_entry.flags |= flags; | 1441 privacy_entry.flags |= flags; |
1442 privacy_entry.policy_ref = UTF8ToWide(policy_ref); | 1442 privacy_entry.policy_ref = UTF8ToWide(policy_ref); |
1443 | 1443 |
1444 if (fire_privacy_event && IsWindow(notification_window_)) { | 1444 if (fire_privacy_event && IsWindow(notification_window_)) { |
1445 PostMessage(notification_window_, WM_FIRE_PRIVACY_CHANGE_NOTIFICATION, 1, | 1445 PostMessage(notification_window_, WM_FIRE_PRIVACY_CHANGE_NOTIFICATION, 1, |
1446 0); | 1446 0); |
1447 } | 1447 } |
1448 } | 1448 } |
OLD | NEW |