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

Side by Side Diff: content/browser/utility_process_host_impl.h

Issue 2848603003: Remove unused copies of EarlyZygoteLaunch() (Closed)
Patch Set: Created 3 years, 7 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
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_UTILITY_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #if defined(OS_POSIX) 56 #if defined(OS_POSIX)
57 void SetEnv(const base::EnvironmentMap& env) override; 57 void SetEnv(const base::EnvironmentMap& env) override;
58 #endif 58 #endif
59 bool Start() override; 59 bool Start() override;
60 void BindInterface(const std::string& interface_name, 60 void BindInterface(const std::string& interface_name,
61 mojo::ScopedMessagePipeHandle interface_pipe) override; 61 mojo::ScopedMessagePipeHandle interface_pipe) override;
62 void SetName(const base::string16& name) override; 62 void SetName(const base::string16& name) override;
63 63
64 void set_child_flags(int flags) { child_flags_ = flags; } 64 void set_child_flags(int flags) { child_flags_ = flags; }
65 65
66 #if defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
67 // Launch the zygote early in the browser startup.
68 static void EarlyZygoteLaunch();
69 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_MACOSX)
70
71 private: 66 private:
72 // Starts a process if necessary. Returns true if it succeeded or a process 67 // Starts a process if necessary. Returns true if it succeeded or a process
73 // has already been started via StartBatchMode(). 68 // has already been started via StartBatchMode().
74 bool StartProcess(); 69 bool StartProcess();
75 70
76 // BrowserChildProcessHost: 71 // BrowserChildProcessHost:
77 bool OnMessageReceived(const IPC::Message& message) override; 72 bool OnMessageReceived(const IPC::Message& message) override;
78 void OnProcessLaunchFailed(int error_code) override; 73 void OnProcessLaunchFailed(int error_code) override;
79 void OnProcessCrashed(int exit_code) override; 74 void OnProcessCrashed(int exit_code) override;
80 75
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 114
120 // Used to vend weak pointers, and should always be declared last. 115 // Used to vend weak pointers, and should always be declared last.
121 base::WeakPtrFactory<UtilityProcessHostImpl> weak_ptr_factory_; 116 base::WeakPtrFactory<UtilityProcessHostImpl> weak_ptr_factory_;
122 117
123 DISALLOW_COPY_AND_ASSIGN(UtilityProcessHostImpl); 118 DISALLOW_COPY_AND_ASSIGN(UtilityProcessHostImpl);
124 }; 119 };
125 120
126 } // namespace content 121 } // namespace content
127 122
128 #endif // CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_ 123 #endif // CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698