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

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

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 years, 9 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.cc ('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 "content/common/mojo/channel_init.h"
8 #include "content/common/mojo/service_registry_impl.h" 9 #include "content/common/mojo/service_registry_impl.h"
9 #include "ipc/ipc_platform_file.h" 10 #include "ipc/ipc_platform_file.h"
10 #include "third_party/mojo/src/mojo/edk/embedder/channel_init.h"
11 11
12 namespace IPC { 12 namespace IPC {
13 class Message; 13 class Message;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 17
18 // MojoApplication represents the code needed to setup a child process as a 18 // MojoApplication represents the code needed to setup a child process as a
19 // Mojo application via Chrome IPC. Instantiate MojoApplication and call its 19 // Mojo application via Chrome IPC. Instantiate MojoApplication and call its
20 // OnMessageReceived method to give it a shot at handling Chrome IPC messages. 20 // OnMessageReceived method to give it a shot at handling Chrome IPC messages.
21 // It makes the ServiceRegistry interface available. 21 // It makes the ServiceRegistry interface available.
22 class MojoApplication { 22 class MojoApplication {
23 public: 23 public:
24 MojoApplication(); 24 MojoApplication();
25 virtual ~MojoApplication(); 25 virtual ~MojoApplication();
26 26
27 bool OnMessageReceived(const IPC::Message& msg); 27 bool OnMessageReceived(const IPC::Message& msg);
28 28
29 ServiceRegistry* service_registry() { return &service_registry_; } 29 ServiceRegistry* service_registry() { return &service_registry_; }
30 30
31 private: 31 private:
32 void OnActivate(const IPC::PlatformFileForTransit& file); 32 void OnActivate(const IPC::PlatformFileForTransit& file);
33 33
34 mojo::embedder::ChannelInit channel_init_; 34 ChannelInit channel_init_;
35 35
36 ServiceRegistryImpl service_registry_; 36 ServiceRegistryImpl service_registry_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(MojoApplication); 38 DISALLOW_COPY_AND_ASSIGN(MojoApplication);
39 }; 39 };
40 40
41 } // namespace content 41 } // namespace content
42 42
43 #endif // CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_ 43 #endif // CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_
OLDNEW
« no previous file with comments | « content/child/child_thread_impl.cc ('k') | content/child/mojo/mojo_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698