Chromium Code Reviews| Index: components/core_services/core_services_application_delegate.h |
| diff --git a/components/core_services/core_services_application_delegate.h b/components/core_services/core_services_application_delegate.h |
| index 2662e410bff08f6b1be9105ab3580b2ceab63609..0d7534d653179323b54e862517e2a3ac20f2f25b 100644 |
| --- a/components/core_services/core_services_application_delegate.h |
| +++ b/components/core_services/core_services_application_delegate.h |
| @@ -6,19 +6,22 @@ |
| #define COMPONENTS_CORE_SERVICES_APPLICATION_DELEGATE_H_ |
| #include "base/macros.h" |
| +#include "components/clipboard/public/interfaces/clipboard.mojom.h" |
| #include "mojo/common/weak_binding_set.h" |
| #include "third_party/mojo/src/mojo/public/cpp/application/application_delegate.h" |
| #include "third_party/mojo/src/mojo/public/cpp/application/interface_factory_impl.h" |
| -#include "third_party/mojo/src/mojo/public/interfaces/application/service_provider.mojom.h" |
| +#include "third_party/mojo_services/src/content_handler/public/interfaces/content_handler.mojom.h" |
| namespace core_services { |
| +class BundledApplication; |
|
Ben Goodger (Google)
2015/05/01 17:10:33
???
Elliot Glaysher
2015/05/01 17:28:43
Removed stray mark.
|
| + |
| // The CoreServices application is a singleton ServiceProvider. There is one |
| // instance of the CoreServices ServiceProvider. |
| class CoreServicesApplicationDelegate |
| : public mojo::ApplicationDelegate, |
| - public mojo::InterfaceFactory<mojo::ServiceProvider>, |
| - public mojo::ServiceProvider { |
| + public mojo::InterfaceFactory<mojo::ContentHandler>, |
| + public mojo::ContentHandler { |
| public: |
| CoreServicesApplicationDelegate(); |
| ~CoreServicesApplicationDelegate() override; |
| @@ -28,16 +31,19 @@ class CoreServicesApplicationDelegate |
| bool ConfigureIncomingConnection( |
| mojo::ApplicationConnection* connection) override; |
| - // Overridden from mojo::InterfaceFactory<ServiceProvider>: |
| + // Overridden from mojo::InterfaceFactory<mojo::ContentHandler>: |
| void Create(mojo::ApplicationConnection* connection, |
| - mojo::InterfaceRequest<ServiceProvider> request) override; |
| + mojo::InterfaceRequest<mojo::ContentHandler> request) override; |
| - // Overridden from ServiceProvider: |
| - void ConnectToService(const mojo::String& service_name, |
| - mojo::ScopedMessagePipeHandle client_handle) override; |
| + // Overridden from mojo::ContentHandler: |
| + void StartApplication( |
| + mojo::InterfaceRequest<mojo::Application> request, |
| + mojo::URLResponsePtr response) override; |
| // Bindings for all of our connections. |
| - mojo::WeakBindingSet<ServiceProvider> provider_bindings_; |
| + mojo::WeakBindingSet<ContentHandler> handler_bindings_; |
| + |
| + scoped_ptr<mojo::ApplicationImpl> clipboard_application_; |
|
Ben Goodger (Google)
2015/05/01 17:10:33
when you get this to spawn threads for application
|
| DISALLOW_COPY_AND_ASSIGN(CoreServicesApplicationDelegate); |
| }; |