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

Side by Side Diff: mojo/public/cpp/shell/service.h

Issue 218613010: Mojo: Move mojo/public/bindings/*.h to mojo/public/cpp/bindings/*.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « mojo/public/cpp/shell/application.h ('k') | mojo/service_manager/service_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_SHELL_SERVICE_H_ 5 #ifndef MOJO_PUBLIC_SHELL_SERVICE_H_
6 #define MOJO_PUBLIC_SHELL_SERVICE_H_ 6 #define MOJO_PUBLIC_SHELL_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "mojo/public/bindings/error_handler.h" 10 #include "mojo/public/cpp/bindings/error_handler.h"
11 #include "mojo/public/bindings/remote_ptr.h" 11 #include "mojo/public/cpp/bindings/remote_ptr.h"
12 #include "mojo/public/cpp/system/core.h" 12 #include "mojo/public/cpp/system/core.h"
13 #include "mojo/public/interfaces/shell/shell.mojom.h" 13 #include "mojo/public/interfaces/shell/shell.mojom.h"
14 14
15 // Utility classes for creating ShellClients that vend service instances. 15 // Utility classes for creating ShellClients that vend service instances.
16 // To use define a class that implements your specific server api, e.g. FooImpl 16 // To use define a class that implements your specific server api, e.g. FooImpl
17 // to implement a service named Foo. That class must define an empty constructor 17 // to implement a service named Foo. That class must define an empty constructor
18 // and the Initialize() method. 18 // and the Initialize() method.
19 // class FooImpl : public Foo { 19 // class FooImpl : public Foo {
20 // public: 20 // public:
21 // FooImpl(); 21 // FooImpl();
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 }; 175 };
176 friend class ServiceFactory<ServiceImpl, Context>; 176 friend class ServiceFactory<ServiceImpl, Context>;
177 Reaper reaper_; 177 Reaper reaper_;
178 ServiceFactory<ServiceImpl, Context>* service_factory_; 178 ServiceFactory<ServiceImpl, Context>* service_factory_;
179 RemotePtr<typename ServiceInterface::_Peer> client_; 179 RemotePtr<typename ServiceInterface::_Peer> client_;
180 }; 180 };
181 181
182 } // namespace mojo 182 } // namespace mojo
183 183
184 #endif // MOJO_PUBLIC_SHELL_SERVICE_H_ 184 #endif // MOJO_PUBLIC_SHELL_SERVICE_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/shell/application.h ('k') | mojo/service_manager/service_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698