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/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/basictypes.h" | 9 #include "base/basictypes.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/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
19 #include "mojo/system/embedder/platform_handle.h" | 19 #include "mojo/embedder/platform_handle.h" |
20 | 20 |
21 namespace mojo { | 21 namespace mojo { |
22 namespace system { | 22 namespace system { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 class VistaOrHigherFunctions { | 26 class VistaOrHigherFunctions { |
27 public: | 27 public: |
28 VistaOrHigherFunctions(); | 28 VistaOrHigherFunctions(); |
29 | 29 |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 // Static factory method declared in raw_channel.h. | 522 // Static factory method declared in raw_channel.h. |
523 // static | 523 // static |
524 RawChannel* RawChannel::Create(embedder::ScopedPlatformHandle handle, | 524 RawChannel* RawChannel::Create(embedder::ScopedPlatformHandle handle, |
525 Delegate* delegate, | 525 Delegate* delegate, |
526 base::MessageLoopForIO* message_loop) { | 526 base::MessageLoopForIO* message_loop) { |
527 return new RawChannelWin(handle.Pass(), delegate, message_loop); | 527 return new RawChannelWin(handle.Pass(), delegate, message_loop); |
528 } | 528 } |
529 | 529 |
530 } // namespace system | 530 } // namespace system |
531 } // namespace mojo | 531 } // namespace mojo |
OLD | NEW |