| 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 "net/proxy/sync_host_resolver_bridge.h" | 5 #include "net/proxy/sync_host_resolver_bridge.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/lock.h" | 9 #include "base/lock.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
| 12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
| 13 #include "net/base/net_log.h" | 13 #include "net/base/net_log.h" |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 | 16 |
| 17 // SyncHostResolverBridge::Core ---------------------------------------------- | 17 // SyncHostResolverBridge::Core ---------------------------------------------- |
| 18 | 18 |
| 19 class SyncHostResolverBridge::Core | 19 class SyncHostResolverBridge::Core |
| 20 : public base::RefCountedThreadSafe<SyncHostResolverBridge::Core> { | 20 : public base::RefCountedThreadSafe<SyncHostResolverBridge::Core> { |
| 21 public: | 21 public: |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 void SyncHostResolverBridge::RemoveObserver(Observer* observer) { | 182 void SyncHostResolverBridge::RemoveObserver(Observer* observer) { |
| 183 NOTREACHED(); | 183 NOTREACHED(); |
| 184 } | 184 } |
| 185 | 185 |
| 186 void SyncHostResolverBridge::Shutdown() { | 186 void SyncHostResolverBridge::Shutdown() { |
| 187 DCHECK_EQ(MessageLoop::current(), host_resolver_loop_); | 187 DCHECK_EQ(MessageLoop::current(), host_resolver_loop_); |
| 188 core_->Shutdown(); | 188 core_->Shutdown(); |
| 189 } | 189 } |
| 190 | 190 |
| 191 } // namespace net | 191 } // namespace net |
| OLD | NEW |