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

Side by Side Diff: content/public/browser/child_process_data.h

Issue 862813002: WIP: Prototype OOP V8 PAC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Slight cleanup and report JS memory usage. Created 5 years, 10 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/content_common.gypi ('k') | content/public/browser/child_process_data.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) 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 CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_
6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_ 6 #define CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_
7 7
8 #include "base/memory/ref_counted.h"
8 #include "base/process/process.h" 9 #include "base/process/process.h"
9 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
10 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/browser/process_resource.h"
11 13
12 namespace content { 14 namespace content {
13 15
14 // Holds information about a child process. 16 // Holds information about a child process.
15 struct ChildProcessData { 17 struct CONTENT_EXPORT ChildProcessData {
16 // The type of the process. 18 // The type of the process.
17 int process_type; 19 int process_type;
18 20
19 // The name of the process. i.e. for plugins it might be Flash, while for 21 // The name of the process. i.e. for plugins it might be Flash, while for
20 // for workers it might be the domain that it's from. 22 // for workers it might be the domain that it's from.
21 base::string16 name; 23 base::string16 name;
22 24
23 // The unique identifier for this child process. This identifier is NOT a 25 // The unique identifier for this child process. This identifier is NOT a
24 // process ID, and will be unique for all types of child process for 26 // process ID, and will be unique for all types of child process for
25 // one run of the browser. 27 // one run of the browser.
26 int id; 28 int id;
27 29
28 // The handle to the process. May have value kNullProcessHandle if no process 30 // The handle to the process. May have value kNullProcessHandle if no process
29 // exists - either because it hasn't been started yet or it's running in the 31 // exists - either because it hasn't been started yet or it's running in the
30 // current process. 32 // current process.
31 base::ProcessHandle handle; 33 base::ProcessHandle handle;
32 34
33 explicit ChildProcessData(int process_type) 35 //
34 : process_type(process_type), id(0), handle(base::kNullProcessHandle) { 36 scoped_refptr<ProcessResource> process_resource;
35 } 37
38 explicit ChildProcessData(int process_type);
39 ~ChildProcessData();
36 }; 40 };
37 41
38 } // namespace content 42 } // namespace content
39 43
40 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_ 44 #endif // CONTENT_PUBLIC_BROWSER_CHILD_PROCESS_DATA_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/public/browser/child_process_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698