| 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 <stdio.h> | 5 #include <stdio.h> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "mojo/public/system/core.h" | 8 #include "mojo/public/system/core.h" |
| 9 #include "mojo/system/core_impl.h" | 9 #include "mojo/system/core_impl.h" |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 mojo::Handle pipe_; | 65 mojo::Handle pipe_; |
| 66 DISALLOW_COPY_AND_ASSIGN(SampleMessageWaiter); | 66 DISALLOW_COPY_AND_ASSIGN(SampleMessageWaiter); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 extern "C" SAMPLE_APP_EXPORT MojoResult CDECL MojoMain( | 69 extern "C" SAMPLE_APP_EXPORT MojoResult CDECL MojoMain( |
| 70 mojo::Handle pipe) { | 70 mojo::Handle pipe) { |
| 71 SampleMessageWaiter(pipe).WaitAndRead(); | 71 SampleMessageWaiter(pipe).WaitAndRead(); |
| 72 return MOJO_RESULT_OK; | 72 return MOJO_RESULT_OK; |
| 73 } | 73 } |
| OLD | NEW |