| 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 "net/proxy/polling_proxy_config_service.h" | 5 #include "net/proxy/polling_proxy_config_service.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
| 11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
| 13 #include "base/threading/worker_pool.h" | 13 #include "base/threading/worker_pool.h" |
| 14 #include "net/proxy/proxy_config.h" | 14 #include "net/proxy/proxy_config.h" |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 | 17 |
| 18 // Reference-counted wrapper that does all the work (needs to be | 18 // Reference-counted wrapper that does all the work (needs to be |
| 19 // reference-counted since we post tasks between threads; may outlive | 19 // reference-counted since we post tasks between threads; may outlive |
| 20 // the parent PollingProxyConfigService). | 20 // the parent PollingProxyConfigService). |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 185 |
| 186 PollingProxyConfigService::~PollingProxyConfigService() { | 186 PollingProxyConfigService::~PollingProxyConfigService() { |
| 187 core_->Orphan(); | 187 core_->Orphan(); |
| 188 } | 188 } |
| 189 | 189 |
| 190 void PollingProxyConfigService::CheckForChangesNow() { | 190 void PollingProxyConfigService::CheckForChangesNow() { |
| 191 core_->CheckForChangesNow(); | 191 core_->CheckForChangesNow(); |
| 192 } | 192 } |
| 193 | 193 |
| 194 } // namespace net | 194 } // namespace net |
| OLD | NEW |