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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class ServiceProviderImpl | 43 class ServiceProviderImpl |
44 : public mojo::InterfaceImpl<mojo::ServiceProvider> { | 44 : public mojo::InterfaceImpl<mojo::ServiceProvider> { |
45 public: | 45 public: |
46 virtual void OnConnectionError() OVERRIDE { | 46 virtual void OnConnectionError() OVERRIDE { |
47 // TODO(darin): How should we handle this error? | 47 // TODO(darin): How should we handle this error? |
48 } | 48 } |
49 | 49 |
50 // mojo::ServiceProvider methods: | 50 // mojo::ServiceProvider methods: |
51 virtual void ConnectToService( | 51 virtual void ConnectToService( |
52 const mojo::String& url, | 52 const mojo::String& url, |
| 53 const mojo::String& name, |
53 mojo::ScopedMessagePipeHandle handle) OVERRIDE; | 54 mojo::ScopedMessagePipeHandle handle) OVERRIDE; |
54 }; | 55 }; |
55 | 56 |
56 mojo::common::ChannelInit channel_init_; | 57 mojo::common::ChannelInit channel_init_; |
57 mojo::embedder::ScopedPlatformHandle client_handle_; | 58 mojo::embedder::ScopedPlatformHandle client_handle_; |
58 | 59 |
59 scoped_ptr<ServiceProviderImpl> child_service_provider_; | 60 scoped_ptr<ServiceProviderImpl> child_service_provider_; |
60 | 61 |
61 bool did_activate_; | 62 bool did_activate_; |
62 | 63 |
63 DISALLOW_COPY_AND_ASSIGN(MojoApplicationHost); | 64 DISALLOW_COPY_AND_ASSIGN(MojoApplicationHost); |
64 }; | 65 }; |
65 | 66 |
66 } // namespace content | 67 } // namespace content |
67 | 68 |
68 #endif // CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_ | 69 #endif // CONTENT_BROWSER_MOJO_MOJO_APPLICATION_HOST_H_ |
OLD | NEW |