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
3 // found in the LICENSE file.
5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
13 #include "mojo/services/view_manager/connection_manager.h"
14 #include "mojo/services/view_manager/view_manager_export.h"
18 class ApplicationConnection
;
22 class ViewManagerInitServiceContext
;
25 // Equivalent of NON_EXPORTED_BASE which does not work with the template snafu
28 #pragma warning(disable : 4275)
31 // Used to create the initial ViewManagerClient. Doesn't initiate the Connect()
32 // until the WindowTreeHost has been created.
33 class MOJO_VIEW_MANAGER_EXPORT ViewManagerInitServiceImpl
34 : public InterfaceImpl
<ViewManagerInitService
> {
36 ViewManagerInitServiceImpl(ApplicationConnection
* connection
,
37 ViewManagerInitServiceContext
* context
);
38 virtual ~ViewManagerInitServiceImpl();
41 // ViewManagerInitService overrides:
42 virtual void Embed(const String
& url
,
43 ServiceProviderPtr service_provider
,
44 const Callback
<void(bool)>& callback
) OVERRIDE
;
46 ViewManagerInitServiceContext
* context_
;
48 DISALLOW_COPY_AND_ASSIGN(ViewManagerInitServiceImpl
);
55 } // namespace service
58 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_