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/edk/system/raw_channel.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "base/process/process.h" | 15 #include "base/process/process.h" |
16 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
17 #include "base/win/scoped_handle.h" | 17 #include "base/win/scoped_handle.h" |
18 #include "base/win/windows_version.h" | 18 #include "base/win/windows_version.h" |
19 #include "mojo/edk/embedder/embedder_internal.h" | 19 #include "mojo/edk/embedder/embedder_internal.h" |
20 #include "mojo/edk/embedder/platform_handle.h" | 20 #include "mojo/edk/embedder/platform_handle.h" |
21 #include "mojo/edk/system/transport_data.h" | 21 #include "mojo/edk/system/transport_data.h" |
22 #include "mojo/public/cpp/system/macros.h" | 22 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" |
23 | 23 |
24 #define STATUS_CANCELLED 0xC0000120 | 24 #define STATUS_CANCELLED 0xC0000120 |
25 #define STATUS_PIPE_BROKEN 0xC000014B | 25 #define STATUS_PIPE_BROKEN 0xC000014B |
26 | 26 |
27 namespace mojo { | 27 namespace mojo { |
28 namespace edk { | 28 namespace edk { |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 struct MOJO_ALIGNAS(8) SerializedHandle { | 32 struct MOJO_ALIGNAS(8) SerializedHandle { |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 return filepath1 == filepath2; | 778 return filepath1 == filepath2; |
779 } else { | 779 } else { |
780 // TODO: XP: see http://stackoverflow.com/questions/65170/how-to-get-name-as
sociated-with-open-handle/5286888#5286888 | 780 // TODO: XP: see http://stackoverflow.com/questions/65170/how-to-get-name-as
sociated-with-open-handle/5286888#5286888 |
781 CHECK(false) << "TODO(jam): handle XP"; | 781 CHECK(false) << "TODO(jam): handle XP"; |
782 return false; | 782 return false; |
783 } | 783 } |
784 } | 784 } |
785 | 785 |
786 } // namespace edk | 786 } // namespace edk |
787 } // namespace mojo | 787 } // namespace mojo |
OLD | NEW |