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 CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_ | 5 #ifndef CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_ |
6 #define CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_ | 6 #define CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_ |
7 | 7 |
8 #include "base/process/process_handle.h" | 8 #include "base/process/process_handle.h" |
9 #include "mojo/common/channel_init.h" | 9 #include "mojo/common/channel_init.h" |
10 #include "mojo/embedder/scoped_platform_handle.h" | 10 #include "mojo/embedder/scoped_platform_handle.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 } | 40 } |
41 | 41 |
42 private: | 42 private: |
43 class ShellImpl : public mojo::InterfaceImpl<mojo::Shell> { | 43 class ShellImpl : public mojo::InterfaceImpl<mojo::Shell> { |
44 public: | 44 public: |
45 virtual void OnConnectionError() OVERRIDE { | 45 virtual void OnConnectionError() OVERRIDE { |
46 // TODO(darin): How should we handle this error? | 46 // TODO(darin): How should we handle this error? |
47 } | 47 } |
48 | 48 |
49 // mojo::Shell methods: | 49 // mojo::Shell methods: |
50 virtual void Connect(const mojo::String& url, | 50 virtual void Connect(mojo::String url, |
51 mojo::ScopedMessagePipeHandle handle) OVERRIDE; | 51 mojo::ScopedMessagePipeHandle handle) OVERRIDE; |
52 }; | 52 }; |
53 | 53 |
54 mojo::common::ChannelInit channel_init_; | 54 mojo::common::ChannelInit channel_init_; |
55 mojo::embedder::ScopedPlatformHandle client_handle_; | 55 mojo::embedder::ScopedPlatformHandle client_handle_; |
56 | 56 |
57 scoped_ptr<ShellImpl> shell_; | 57 scoped_ptr<ShellImpl> shell_; |
58 | 58 |
59 bool did_activate_; | 59 bool did_activate_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(MojoApplicationHost); | 61 DISALLOW_COPY_AND_ASSIGN(MojoApplicationHost); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace content | 64 } // namespace content |
65 | 65 |
66 #endif // CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_ | 66 #endif // CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_ |
OLD | NEW |