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 #include "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "dbus/bus.h" | 6 #include "dbus/bus.h" |
7 #include "dbus/exported_object.h" | 7 #include "dbus/exported_object.h" |
8 #include "dbus/message.h" | 8 #include "dbus/message.h" |
9 #include "dbus/object_path.h" | 9 #include "dbus/object_path.h" |
10 #include "mojo/embedder/channel_init.h" | 10 #include "mojo/embedder/channel_init.h" |
11 #include "mojo/public/cpp/application/application_connection.h" | 11 #include "mojo/public/cpp/application/application_connection.h" |
12 #include "mojo/public/cpp/application/application_delegate.h" | 12 #include "mojo/public/cpp/application/application_delegate.h" |
13 #include "mojo/public/cpp/application/application_impl.h" | 13 #include "mojo/public/cpp/application/application_impl.h" |
14 #include "mojo/public/cpp/application/interface_factory.h" | 14 #include "mojo/public/cpp/application/interface_factory.h" |
15 #include "mojo/public/cpp/bindings/interface_request.h" | 15 #include "mojo/public/cpp/bindings/interface_request.h" |
16 #include "mojo/public/interfaces/service_provider/service_provider.mojom.h" | |
17 #include "mojo/shell/external_service.mojom.h" | 16 #include "mojo/shell/external_service.mojom.h" |
18 | 17 |
19 namespace mojo { | 18 namespace mojo { |
20 const char kMojoDBusImplPath[] = "/org/chromium/MojoImpl"; | 19 const char kMojoDBusImplPath[] = "/org/chromium/MojoImpl"; |
21 const char kMojoDBusInterface[] = "org.chromium.Mojo"; | 20 const char kMojoDBusInterface[] = "org.chromium.Mojo"; |
22 const char kMojoDBusConnectMethod[] = "ConnectChannel"; | 21 const char kMojoDBusConnectMethod[] = "ConnectChannel"; |
23 | 22 |
24 class DBusExternalServiceBase { | 23 class DBusExternalServiceBase { |
25 public: | 24 public: |
26 explicit DBusExternalServiceBase(const std::string& service_name); | 25 explicit DBusExternalServiceBase(const std::string& service_name); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } | 97 } |
99 private: | 98 private: |
100 DBusExternalService* service_; | 99 DBusExternalService* service_; |
101 scoped_ptr<Application> app_; | 100 scoped_ptr<Application> app_; |
102 }; | 101 }; |
103 | 102 |
104 scoped_ptr<Impl> external_service_; | 103 scoped_ptr<Impl> external_service_; |
105 }; | 104 }; |
106 | 105 |
107 } // namespace mojo | 106 } // namespace mojo |
OLD | NEW |