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

Side by Side Diff: content/child/mojo/mojo_application.h

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
Patch Set: . Created 4 years, 6 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
« no previous file with comments | « content/child/child_thread_impl.h ('k') | content/child/mojo/mojo_application.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 CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_ 5 #ifndef CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_
6 #define CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_ 6 #define CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/common/mojo/service_registry_impl.h" 11 #include "services/shell/public/cpp/interface_provider.h"
12 #include "services/shell/public/cpp/interface_registry.h"
12 13
13 namespace content { 14 namespace content {
14 15
15 // MojoApplication represents the code needed to setup a child process as a 16 // MojoApplication represents the code needed to setup a child process as a
16 // Mojo application. Instantiate MojoApplication and call InitWithToken() with 17 // Mojo application. Instantiate MojoApplication and call InitWithToken() with
17 // a token passed from the process host. It makes the ServiceRegistry interface 18 // a token passed from the process host. It makes the ServiceRegistry interface
18 // available. 19 // available.
19 class MojoApplication { 20 class MojoApplication {
20 public: 21 public:
21 MojoApplication(); 22 MojoApplication();
22 virtual ~MojoApplication(); 23 virtual ~MojoApplication();
23 24
24 // Initializes this MojoApplicaiton with a message pipe obtained using 25 // Initializes this MojoApplicaiton with a message pipe obtained using
25 // |token|. 26 // |token|.
26 void InitWithToken(const std::string& token); 27 void InitWithToken(const std::string& token);
27 28
28 ServiceRegistry* service_registry() { return &service_registry_; } 29 shell::InterfaceRegistry* interface_registry() {
30 return interface_registry_.get();
31 }
32 shell::InterfaceProvider* remote_interfaces() {
33 return remote_interfaces_.get();
34 }
29 35
30 private: 36 private:
31 ServiceRegistryImpl service_registry_; 37 std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
38 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
32 39
33 DISALLOW_COPY_AND_ASSIGN(MojoApplication); 40 DISALLOW_COPY_AND_ASSIGN(MojoApplication);
34 }; 41 };
35 42
36 } // namespace content 43 } // namespace content
37 44
38 #endif // CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_ 45 #endif // CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_
OLDNEW
« no previous file with comments | « content/child/child_thread_impl.h ('k') | content/child/mojo/mojo_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698