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

Side by Side Diff: content/browser/zygote_host/zygote_host_impl_linux.h

Issue 49843002: cros: Remove unused low memory margin code from sandbox and zygote (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | content/browser/zygote_host/zygote_host_impl_linux.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_BROWSER_ZYGOTE_HOST_ZYGOTE_HOST_IMPL_LINUX_H_ 5 #ifndef CONTENT_BROWSER_ZYGOTE_HOST_ZYGOTE_HOST_IMPL_LINUX_H_
6 #define CONTENT_BROWSER_ZYGOTE_HOST_ZYGOTE_HOST_IMPL_LINUX_H_ 6 #define CONTENT_BROWSER_ZYGOTE_HOST_ZYGOTE_HOST_IMPL_LINUX_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 base::TerminationStatus GetTerminationStatus(base::ProcessHandle handle, 48 base::TerminationStatus GetTerminationStatus(base::ProcessHandle handle,
49 bool known_dead, 49 bool known_dead,
50 int* exit_code); 50 int* exit_code);
51 51
52 // ZygoteHost implementation: 52 // ZygoteHost implementation:
53 virtual pid_t GetPid() const OVERRIDE; 53 virtual pid_t GetPid() const OVERRIDE;
54 virtual pid_t GetSandboxHelperPid() const OVERRIDE; 54 virtual pid_t GetSandboxHelperPid() const OVERRIDE;
55 virtual int GetSandboxStatus() const OVERRIDE; 55 virtual int GetSandboxStatus() const OVERRIDE;
56 virtual void AdjustRendererOOMScore(base::ProcessHandle process_handle, 56 virtual void AdjustRendererOOMScore(base::ProcessHandle process_handle,
57 int score) OVERRIDE; 57 int score) OVERRIDE;
58 virtual void AdjustLowMemoryMargin(int64 margin_mb) OVERRIDE;
59 58
60 private: 59 private:
61 friend struct DefaultSingletonTraits<ZygoteHostImpl>; 60 friend struct DefaultSingletonTraits<ZygoteHostImpl>;
62 61
63 ZygoteHostImpl(); 62 ZygoteHostImpl();
64 virtual ~ZygoteHostImpl(); 63 virtual ~ZygoteHostImpl();
65 64
66 // Sends |data| to the zygote via |control_fd_|. If |fds| is non-NULL, the 65 // Sends |data| to the zygote via |control_fd_|. If |fds| is non-NULL, the
67 // included file descriptors will also be passed. The caller is responsible 66 // included file descriptors will also be passed. The caller is responsible
68 // for acquiring |control_lock_|. 67 // for acquiring |control_lock_|.
(...skipping 10 matching lines...) Expand all
79 bool init_; 78 bool init_;
80 bool using_suid_sandbox_; 79 bool using_suid_sandbox_;
81 std::string sandbox_binary_; 80 std::string sandbox_binary_;
82 bool have_read_sandbox_status_word_; 81 bool have_read_sandbox_status_word_;
83 int sandbox_status_; 82 int sandbox_status_;
84 }; 83 };
85 84
86 } // namespace content 85 } // namespace content
87 86
88 #endif // CONTENT_BROWSER_ZYGOTE_HOST_ZYGOTE_HOST_IMPL_LINUX_H_ 87 #endif // CONTENT_BROWSER_ZYGOTE_HOST_ZYGOTE_HOST_IMPL_LINUX_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/zygote_host/zygote_host_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698