| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #import "ios/net/crn_http_protocol_handler_proxy_with_client_thread.h" | 5 #import "ios/net/crn_http_protocol_handler_proxy_with_client_thread.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
| 9 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 10 #import "ios/net/protocol_handler_util.h" | 12 #import "ios/net/protocol_handler_util.h" |
| 11 #include "net/base/auth.h" | 13 #include "net/base/auth.h" |
| 12 #include "net/url_request/url_request.h" | 14 #include "net/url_request/url_request.h" |
| 13 | 15 |
| 14 // When the protocol is invalidated, no synchronization (lock) is needed: | 16 // When the protocol is invalidated, no synchronization (lock) is needed: |
| 15 // - The actual calls to the protocol and its invalidation are all done on | 17 // - The actual calls to the protocol and its invalidation are all done on |
| 16 // clientThread_ and thus are serialized. | 18 // clientThread_ and thus are serialized. |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 } | 257 } |
| 256 | 258 |
| 257 - (void)resume { | 259 - (void)resume { |
| 258 DCHECK([NSThread currentThread] == _clientThread); | 260 DCHECK([NSThread currentThread] == _clientThread); |
| 259 DCHECK(!_requestComplete || !_protocol); | 261 DCHECK(!_requestComplete || !_protocol); |
| 260 _paused = NO; | 262 _paused = NO; |
| 261 [self runInvocationQueueOnClientThread]; | 263 [self runInvocationQueueOnClientThread]; |
| 262 } | 264 } |
| 263 | 265 |
| 264 @end | 266 @end |
| OLD | NEW |