OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 IPC_MOJO_IPC_MOJO_BOOTSTRAP_H_ | 5 #ifndef IPC_MOJO_IPC_MOJO_BOOTSTRAP_H_ |
6 #define IPC_MOJO_IPC_MOJO_BOOTSTRAP_H_ | 6 #define IPC_MOJO_IPC_MOJO_BOOTSTRAP_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
10 #include "ipc/ipc_channel.h" | 10 #include "ipc/ipc_channel.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 Delegate* delegate() const { return delegate_; } | 60 Delegate* delegate() const { return delegate_; } |
61 bool Send(Message* message); | 61 bool Send(Message* message); |
62 | 62 |
63 State state() const { return state_; } | 63 State state() const { return state_; } |
64 void set_state(State state) { state_ = state; } | 64 void set_state(State state) { state_ = state; } |
65 | 65 |
66 private: | 66 private: |
67 void Init(scoped_ptr<Channel> channel, Delegate* delegate); | 67 void Init(scoped_ptr<Channel> channel, Delegate* delegate); |
68 | 68 |
69 // Listener implementations | 69 // Listener implementations |
70 virtual void OnBadMessageReceived(const Message& message) OVERRIDE; | 70 virtual void OnBadMessageReceived(const Message& message) override; |
71 virtual void OnChannelError() OVERRIDE; | 71 virtual void OnChannelError() override; |
72 | 72 |
73 scoped_ptr<Channel> channel_; | 73 scoped_ptr<Channel> channel_; |
74 Delegate* delegate_; | 74 Delegate* delegate_; |
75 State state_; | 75 State state_; |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(MojoBootstrap); | 77 DISALLOW_COPY_AND_ASSIGN(MojoBootstrap); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace IPC | 80 } // namespace IPC |
81 | 81 |
82 #endif // IPC_MOJO_IPC_MOJO_BOOTSTRAP_H_ | 82 #endif // IPC_MOJO_IPC_MOJO_BOOTSTRAP_H_ |
OLD | NEW |