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

Side by Side Diff: components/nacl/browser/nacl_process_host.h

Issue 338523007: Pepper: Whitelist dev channel APIs for some apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gross pnacl hack Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_NACL_PROCESS_HOST_H_ 5 #ifndef COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_
6 #define COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ 6 #define COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 27 matching lines...) Expand all
38 // Represents the browser side of the browser <--> NaCl communication 38 // Represents the browser side of the browser <--> NaCl communication
39 // channel. There will be one NaClProcessHost per NaCl process 39 // channel. There will be one NaClProcessHost per NaCl process
40 // The browser is responsible for starting the NaCl process 40 // The browser is responsible for starting the NaCl process
41 // when requested by the renderer. 41 // when requested by the renderer.
42 // After that, most of the communication is directly between NaCl plugin 42 // After that, most of the communication is directly between NaCl plugin
43 // running in the renderer and NaCl processes. 43 // running in the renderer and NaCl processes.
44 class NaClProcessHost : public content::BrowserChildProcessHostDelegate { 44 class NaClProcessHost : public content::BrowserChildProcessHostDelegate {
45 public: 45 public:
46 // manifest_url: the URL of the manifest of the Native Client plugin being 46 // manifest_url: the URL of the manifest of the Native Client plugin being
47 // executed. 47 // executed.
48 // permissions: PPAPI permissions, to control access to private APIs.
48 // render_view_id: RenderView routing id, to control access to private APIs. 49 // render_view_id: RenderView routing id, to control access to private APIs.
49 // permission_bits: controls which interfaces the NaCl plugin can use. 50 // permission_bits: controls which interfaces the NaCl plugin can use.
50 // uses_irt: whether the launched process should use the IRT. 51 // uses_irt: whether the launched process should use the IRT.
51 // uses_nonsfi_mode: whether the program should be loaded under non-SFI mode. 52 // uses_nonsfi_mode: whether the program should be loaded under non-SFI mode.
52 // enable_dyncode_syscalls: whether the launched process should allow dyncode 53 // enable_dyncode_syscalls: whether the launched process should allow dyncode
53 // and mmap with PROT_EXEC. 54 // and mmap with PROT_EXEC.
54 // enable_exception_handling: whether the launched process should allow 55 // enable_exception_handling: whether the launched process should allow
55 // hardware exception handling. 56 // hardware exception handling.
56 // enable_crash_throttling: whether a crash of this process contributes 57 // enable_crash_throttling: whether a crash of this process contributes
57 // to the crash throttling statistics, and also 58 // to the crash throttling statistics, and also
58 // whether this process should not start when too 59 // whether this process should not start when too
59 // many crashes have been observed. 60 // many crashes have been observed.
60 // off_the_record: was the process launched from an incognito renderer? 61 // off_the_record: was the process launched from an incognito renderer?
61 // profile_directory: is the path of current profile directory. 62 // profile_directory: is the path of current profile directory.
62 NaClProcessHost(const GURL& manifest_url, 63 NaClProcessHost(const GURL& manifest_url,
64 ppapi::PpapiPermissions permissions,
63 int render_view_id, 65 int render_view_id,
64 uint32 permission_bits, 66 uint32 permission_bits,
65 bool uses_irt, 67 bool uses_irt,
66 bool uses_nonsfi_mode, 68 bool uses_nonsfi_mode,
67 bool enable_dyncode_syscalls, 69 bool enable_dyncode_syscalls,
68 bool enable_exception_handling, 70 bool enable_exception_handling,
69 bool enable_crash_throttling, 71 bool enable_crash_throttling,
70 bool off_the_record, 72 bool off_the_record,
71 const base::FilePath& profile_directory); 73 const base::FilePath& profile_directory);
72 virtual ~NaClProcessHost(); 74 virtual ~NaClProcessHost();
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 238
237 // Throttling time in milliseconds for PpapiHostMsg_Keepalive IPCs. 239 // Throttling time in milliseconds for PpapiHostMsg_Keepalive IPCs.
238 static unsigned keepalive_throttle_interval_milliseconds_; 240 static unsigned keepalive_throttle_interval_milliseconds_;
239 241
240 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); 242 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost);
241 }; 243 };
242 244
243 } // namespace nacl 245 } // namespace nacl
244 246
245 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_ 247 #endif // COMPONENTS_NACL_BROWSER_NACL_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « components/nacl/browser/nacl_host_message_filter.cc ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698