Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: mojo/services/view_manager/view_manager_init_service_impl.h

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some InterfaceProvider impls for common cases Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 #if defined(OS_WIN) 25 #if defined(OS_WIN)
26 // Equivalent of NON_EXPORTED_BASE which does not work with the template snafu 26 // Equivalent of NON_EXPORTED_BASE which does not work with the template snafu
27 // below. 27 // below.
28 #pragma warning(push) 28 #pragma warning(push)
29 #pragma warning(disable : 4275) 29 #pragma warning(disable : 4275)
30 #endif 30 #endif
31 31
32 // Used to create the initial ViewManagerClient. Doesn't initiate the Connect() 32 // Used to create the initial ViewManagerClient. Doesn't initiate the Connect()
33 // until the WindowTreeHost has been created. 33 // until the WindowTreeHost has been created.
34 class MOJO_VIEW_MANAGER_EXPORT ViewManagerInitServiceImpl 34 class MOJO_VIEW_MANAGER_EXPORT ViewManagerInitServiceImpl
35 : public InterfaceImpl<ViewManagerInitService>, 35 : public InterfaceImplDeleteOnError<ViewManagerInitService>,
36 public RootViewManagerDelegate { 36 public RootViewManagerDelegate {
37 public: 37 public:
38 explicit ViewManagerInitServiceImpl(ApplicationConnection* connection); 38 explicit ViewManagerInitServiceImpl(ApplicationConnection* connection);
39 virtual ~ViewManagerInitServiceImpl(); 39 virtual ~ViewManagerInitServiceImpl();
40 40
41 private: 41 private:
42 struct ConnectParams { 42 struct ConnectParams {
43 ConnectParams(); 43 ConnectParams();
44 ~ConnectParams(); 44 ~ConnectParams();
45 45
(...skipping 25 matching lines...) Expand all
71 71
72 #if defined(OS_WIN) 72 #if defined(OS_WIN)
73 #pragma warning(pop) 73 #pragma warning(pop)
74 #endif 74 #endif
75 75
76 } // namespace service 76 } // namespace service
77 } // namespace view_manager 77 } // namespace view_manager
78 } // namespace mojo 78 } // namespace mojo
79 79
80 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_ 80 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698