| OLD | NEW | 
|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "mojo/public/cpp/bindings/lib/connector.h" | 5 #include "mojo/public/cpp/bindings/lib/connector.h" | 
| 6 | 6 | 
|  | 7 #include <stdint.h> | 
|  | 8 | 
| 7 #include "base/logging.h" | 9 #include "base/logging.h" | 
| 8 #include "base/macros.h" | 10 #include "base/macros.h" | 
| 9 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" | 
| 10 | 12 | 
| 11 namespace mojo { | 13 namespace mojo { | 
| 12 namespace internal { | 14 namespace internal { | 
| 13 | 15 | 
| 14 namespace { | 16 namespace { | 
| 15 | 17 | 
| 16 // Similar to base::AutoLock, except that it does nothing if |lock| passed into | 18 // Similar to base::AutoLock, except that it does nothing if |lock| passed into | 
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 305     if (!paused_) | 307     if (!paused_) | 
| 306       WaitToReadMore(); | 308       WaitToReadMore(); | 
| 307   } else { | 309   } else { | 
| 308     error_ = true; | 310     error_ = true; | 
| 309     connection_error_handler_.Run(); | 311     connection_error_handler_.Run(); | 
| 310   } | 312   } | 
| 311 } | 313 } | 
| 312 | 314 | 
| 313 }  // namespace internal | 315 }  // namespace internal | 
| 314 }  // namespace mojo | 316 }  // namespace mojo | 
| OLD | NEW | 
|---|