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

Side by Side Diff: chrome/browser/nacl_host/nacl_process_host.h

Issue 8771041: Simplify BrowserChildProcessHost in preparation for refactoring it so that consumers embed it in ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix nacl on win64 Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/nacl_host/nacl_process_host.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_
6 #define CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 23 matching lines...) Expand all
34 // Initialize the new NaCl process, returning true on success. 34 // Initialize the new NaCl process, returning true on success.
35 bool Launch(ChromeRenderMessageFilter* chrome_render_message_filter, 35 bool Launch(ChromeRenderMessageFilter* chrome_render_message_filter,
36 int socket_count, 36 int socket_count,
37 IPC::Message* reply_msg); 37 IPC::Message* reply_msg);
38 38
39 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 39 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
40 40
41 void OnProcessLaunchedByBroker(base::ProcessHandle handle); 41 void OnProcessLaunchedByBroker(base::ProcessHandle handle);
42 42
43 protected: 43 protected:
44 virtual base::TerminationStatus GetChildTerminationStatus( 44 virtual void OnProcessCrashed(int exit_code) OVERRIDE;
45 int* exit_code) OVERRIDE;
46 45
47 private: 46 private:
48 // Internal class that holds the nacl::Handle objecs so that 47 // Internal class that holds the nacl::Handle objecs so that
49 // nacl_process_host.h doesn't include NaCl headers. Needed since it's 48 // nacl_process_host.h doesn't include NaCl headers. Needed since it's
50 // included by src\content, which can't depend on the NaCl gyp file because it 49 // included by src\content, which can't depend on the NaCl gyp file because it
51 // depends on chrome.gyp (circular dependency). 50 // depends on chrome.gyp (circular dependency).
52 struct NaClInternal; 51 struct NaClInternal;
53 52
54 bool LaunchSelLdr(); 53 bool LaunchSelLdr();
55 54
(...skipping 12 matching lines...) Expand all
68 67
69 // Socket pairs for the NaCl process and renderer. 68 // Socket pairs for the NaCl process and renderer.
70 scoped_ptr<NaClInternal> internal_; 69 scoped_ptr<NaClInternal> internal_;
71 70
72 base::WeakPtrFactory<NaClProcessHost> weak_factory_; 71 base::WeakPtrFactory<NaClProcessHost> weak_factory_;
73 72
74 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost); 73 DISALLOW_COPY_AND_ASSIGN(NaClProcessHost);
75 }; 74 };
76 75
77 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_ 76 #endif // CHROME_BROWSER_NACL_HOST_NACL_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/nacl_host/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698