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

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

Issue 2525483002: Convert NaCl renderer-loader messages to mojo. (Closed)
Patch Set: Created 4 years 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
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // The outer sandbox on Linux and OSX prevents 103 // The outer sandbox on Linux and OSX prevents
104 // sysconf(_SC_NPROCESSORS) from working; in Windows, there are no 104 // sysconf(_SC_NPROCESSORS) from working; in Windows, there are no
105 // problems with invoking GetSystemInfo. Therefore, only in 105 // problems with invoking GetSystemInfo. Therefore, only in
106 // OS_POSIX do we need to supply the number of cores into the 106 // OS_POSIX do we need to supply the number of cores into the
107 // NaClChromeMainArgs object. 107 // NaClChromeMainArgs object.
108 int number_of_cores_; 108 int number_of_cores_;
109 #endif 109 #endif
110 110
111 std::unique_ptr<base::SharedMemory> crash_info_shmem_; 111 std::unique_ptr<base::SharedMemory> crash_info_shmem_;
112 112
113 scoped_refptr<NaClTrustedListener> trusted_listener_; 113 std::unique_ptr<NaClTrustedListener> trusted_listener_;
114 114
115 ResolveFileTokenCallback resolved_cb_; 115 ResolveFileTokenCallback resolved_cb_;
116 116
117 // Used to identify what thread we're on. 117 // Used to identify what thread we're on.
118 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 118 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
119 119
120 typedef std::map< 120 typedef std::map<
121 std::string, // manifest key 121 std::string, // manifest key
122 std::pair<IPC::PlatformFileForTransit, 122 std::pair<IPC::PlatformFileForTransit,
123 base::FilePath> > PrefetchedResourceFilesMap; 123 base::FilePath> > PrefetchedResourceFilesMap;
124 PrefetchedResourceFilesMap prefetched_resource_files_; 124 PrefetchedResourceFilesMap prefetched_resource_files_;
125 125
126 bool is_started_; 126 bool is_started_;
127 127
128 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_; 128 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(NaClListener); 130 DISALLOW_COPY_AND_ASSIGN(NaClListener);
131 }; 131 };
132 132
133 #endif // COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ 133 #endif // COMPONENTS_NACL_LOADER_NACL_LISTENER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698