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

Side by Side Diff: components/nacl/loader/nacl_listener.h

Issue 2501913002: Change the NaCl loader and broker processes to use the ServiceManager. (Closed)
Patch Set: rebase Created 3 years, 12 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 | « components/nacl/loader/nacl_helper_win_64.cc ('k') | components/nacl/loader/nacl_listener.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ 5 #ifndef COMPONENTS_NACL_LOADER_NACL_LISTENER_H_
6 #define COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ 6 #define COMPONENTS_NACL_LOADER_NACL_LISTENER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "components/nacl/common/nacl_types.h" 22 #include "components/nacl/common/nacl_types.h"
23 #include "components/nacl/loader/nacl_trusted_listener.h" 23 #include "components/nacl/loader/nacl_trusted_listener.h"
24 #include "ipc/ipc_listener.h" 24 #include "ipc/ipc_listener.h"
25 25
26 namespace IPC { 26 namespace IPC {
27 class SyncChannel; 27 class SyncChannel;
28 class SyncMessageFilter; 28 class SyncMessageFilter;
29 } 29 }
30 30
31 namespace mojo {
32 namespace edk {
33 class ScopedIPCSupport;
34 } // namespace edk
35 } // namespace mojo
36
37 // The NaClListener is an IPC channel listener that waits for a 31 // The NaClListener is an IPC channel listener that waits for a
38 // request to start a NaCl module. 32 // request to start a NaCl module.
39 class NaClListener : public IPC::Listener { 33 class NaClListener : public IPC::Listener {
40 public: 34 public:
41 NaClListener(); 35 NaClListener();
42 ~NaClListener() override; 36 ~NaClListener() override;
43 // Listen for a request to launch a NaCl module. 37 // Listen for a request to launch a NaCl module.
44 void Listen(); 38 void Listen();
45 39
46 bool Send(IPC::Message* msg); 40 bool Send(IPC::Message* msg);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 112 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
119 113
120 typedef std::map< 114 typedef std::map<
121 std::string, // manifest key 115 std::string, // manifest key
122 std::pair<IPC::PlatformFileForTransit, 116 std::pair<IPC::PlatformFileForTransit,
123 base::FilePath> > PrefetchedResourceFilesMap; 117 base::FilePath> > PrefetchedResourceFilesMap;
124 PrefetchedResourceFilesMap prefetched_resource_files_; 118 PrefetchedResourceFilesMap prefetched_resource_files_;
125 119
126 bool is_started_; 120 bool is_started_;
127 121
128 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_;
129
130 DISALLOW_COPY_AND_ASSIGN(NaClListener); 122 DISALLOW_COPY_AND_ASSIGN(NaClListener);
131 }; 123 };
132 124
133 #endif // COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ 125 #endif // COMPONENTS_NACL_LOADER_NACL_LISTENER_H_
OLDNEW
« no previous file with comments | « components/nacl/loader/nacl_helper_win_64.cc ('k') | components/nacl/loader/nacl_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698