| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef CONTENT_COMMON_MESSAGE_PORT_H_ | 5 #ifndef CONTENT_COMMON_MESSAGE_PORT_H_ |
| 6 #define CONTENT_COMMON_MESSAGE_PORT_H_ | 6 #define CONTENT_COMMON_MESSAGE_PORT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 ~State(); | 94 ~State(); |
| 95 | 95 |
| 96 void ArmWatcher(); | 96 void ArmWatcher(); |
| 97 void OnHandleReady(MojoResult result); | 97 void OnHandleReady(MojoResult result); |
| 98 | 98 |
| 99 static void CallOnHandleReady(uintptr_t context, | 99 static void CallOnHandleReady(uintptr_t context, |
| 100 MojoResult result, | 100 MojoResult result, |
| 101 MojoHandleSignalsState signals_state, | 101 MojoHandleSignalsState signals_state, |
| 102 MojoWatcherNotificationFlags flags); | 102 MojoWatcherNotificationFlags flags); |
| 103 | |
| 104 uintptr_t context_; | |
| 105 }; | 103 }; |
| 106 mutable scoped_refptr<State> state_; | 104 mutable scoped_refptr<State> state_; |
| 107 }; | 105 }; |
| 108 | 106 |
| 109 } // namespace content | 107 } // namespace content |
| 110 | 108 |
| 111 #endif // CONTENT_COMMON_MESSAGE_PORT_H_ | 109 #endif // CONTENT_COMMON_MESSAGE_PORT_H_ |
| OLD | NEW |