OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/arc/arc_bridge_bootstrap.h" | 5 #include "components/arc/arc_bridge_bootstrap.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <grp.h> | 8 #include <grp.h> |
9 #include <unistd.h> | 9 #include <unistd.h> |
10 | 10 |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 void ArcBridgeBootstrapImpl::SetState(State state) { | 334 void ArcBridgeBootstrapImpl::SetState(State state) { |
335 DCHECK(thread_checker_.CalledOnValidThread()); | 335 DCHECK(thread_checker_.CalledOnValidThread()); |
336 // DCHECK on enum classes not supported. | 336 // DCHECK on enum classes not supported. |
337 DCHECK(state_ != state); | 337 DCHECK(state_ != state); |
338 state_ = state; | 338 state_ = state; |
339 } | 339 } |
340 | 340 |
341 } // namespace | 341 } // namespace |
342 | 342 |
343 ArcBridgeBootstrap::ArcBridgeBootstrap() {} | 343 ArcBridgeBootstrap::ArcBridgeBootstrap() {} |
| 344 |
344 ArcBridgeBootstrap::~ArcBridgeBootstrap() {} | 345 ArcBridgeBootstrap::~ArcBridgeBootstrap() {} |
345 | 346 |
346 // static | 347 // static |
347 scoped_ptr<ArcBridgeBootstrap> ArcBridgeBootstrap::Create() { | 348 scoped_ptr<ArcBridgeBootstrap> ArcBridgeBootstrap::Create() { |
348 return make_scoped_ptr(new ArcBridgeBootstrapImpl()); | 349 return make_scoped_ptr(new ArcBridgeBootstrapImpl()); |
349 } | 350 } |
350 | 351 |
351 } // namespace arc | 352 } // namespace arc |
OLD | NEW |