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

Side by Side Diff: chrome/browser/zygote_host_linux.h

Issue 467058: Linux: Adjust /proc/pid/oom_adj to sacrifice plugin and renderer processes to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_ZYGOTE_HOST_LINUX_H_ 5 #ifndef CHROME_BROWSER_ZYGOTE_HOST_LINUX_H_
6 #define CHROME_BROWSER_ZYGOTE_HOST_LINUX_H_ 6 #define CHROME_BROWSER_ZYGOTE_HOST_LINUX_H_
7 7
8 #include <unistd.h> 8 #include <unistd.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 pid_t pid() const { return pid_; } 48 pid_t pid() const { return pid_; }
49 49
50 private: 50 private:
51 friend struct DefaultSingletonTraits<ZygoteHost>; 51 friend struct DefaultSingletonTraits<ZygoteHost>;
52 ZygoteHost(); 52 ZygoteHost();
53 ~ZygoteHost(); 53 ~ZygoteHost();
54 54
55 int control_fd_; // the socket to the zygote 55 int control_fd_; // the socket to the zygote
56 pid_t pid_; 56 pid_t pid_;
57 bool init_; 57 bool init_;
58 bool using_suid_sandbox_;
59 std::string sandbox_binary_;
58 }; 60 };
59 61
60 #endif // CHROME_BROWSER_ZYGOTE_HOST_LINUX_H_ 62 #endif // CHROME_BROWSER_ZYGOTE_HOST_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698