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/edk/system/raw_channel.h" | 5 #include "mojo/system/raw_channel.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
18 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
19 #include "base/win/windows_version.h" | 19 #include "base/win/windows_version.h" |
20 #include "mojo/edk/embedder/platform_handle.h" | 20 #include "mojo/embedder/platform_handle.h" |
21 | 21 |
22 namespace mojo { | 22 namespace mojo { |
23 namespace system { | 23 namespace system { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 class VistaOrHigherFunctions { | 27 class VistaOrHigherFunctions { |
28 public: | 28 public: |
29 VistaOrHigherFunctions(); | 29 VistaOrHigherFunctions(); |
30 | 30 |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 | 576 |
577 // Static factory method declared in raw_channel.h. | 577 // Static factory method declared in raw_channel.h. |
578 // static | 578 // static |
579 scoped_ptr<RawChannel> RawChannel::Create( | 579 scoped_ptr<RawChannel> RawChannel::Create( |
580 embedder::ScopedPlatformHandle handle) { | 580 embedder::ScopedPlatformHandle handle) { |
581 return make_scoped_ptr(new RawChannelWin(handle.Pass())); | 581 return make_scoped_ptr(new RawChannelWin(handle.Pass())); |
582 } | 582 } |
583 | 583 |
584 } // namespace system | 584 } // namespace system |
585 } // namespace mojo | 585 } // namespace mojo |
OLD | NEW |