Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: net/proxy/sync_host_resolver_bridge.cc

Issue 2945004: Revert 51877, since SpdyNetworkTransactionTest.CorruptFrameSessionError start... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/proxy/sync_host_resolver_bridge.h ('k') | net/proxy/sync_host_resolver_bridge_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
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 // SingleThreadedProxyResolverUsingBridgedHostResolver -----------------------
192
193 SingleThreadedProxyResolverUsingBridgedHostResolver::
194 SingleThreadedProxyResolverUsingBridgedHostResolver(
195 ProxyResolver* proxy_resolver,
196 SyncHostResolverBridge* bridged_host_resolver)
197 : SingleThreadedProxyResolver(proxy_resolver),
198 bridged_host_resolver_(bridged_host_resolver) {
199 }
200
201 SingleThreadedProxyResolverUsingBridgedHostResolver::
202 ~SingleThreadedProxyResolverUsingBridgedHostResolver() {
203 bridged_host_resolver_->Shutdown();
204 }
205
191 } // namespace net 206 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/sync_host_resolver_bridge.h ('k') | net/proxy/sync_host_resolver_bridge_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698