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

Side by Side Diff: content/child/child_thread_impl.h

Issue 2387603003: Resume a backgrounded renderer that was purged and suspended (Closed)
Patch Set: 2min / 1min. Created 4 years, 2 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_CHILD_CHILD_THREAD_IMPL_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_IMPL_H_
6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 void OnProcessFinalRelease(); 206 void OnProcessFinalRelease();
207 207
208 // Called by subclasses to manually start the MojoShellConnection. Must only 208 // Called by subclasses to manually start the MojoShellConnection. Must only
209 // be called if ChildThreadImpl::Options::auto_start_mojo_shell_connection 209 // be called if ChildThreadImpl::Options::auto_start_mojo_shell_connection
210 // was set to |false| on ChildThreadImpl construction. 210 // was set to |false| on ChildThreadImpl construction.
211 void StartMojoShellConnection(); 211 void StartMojoShellConnection();
212 212
213 virtual bool OnControlMessageReceived(const IPC::Message& msg); 213 virtual bool OnControlMessageReceived(const IPC::Message& msg);
214 virtual void OnProcessBackgrounded(bool backgrounded); 214 virtual void OnProcessBackgrounded(bool backgrounded);
215 virtual void OnProcessPurgeAndSuspend(); 215 virtual void OnProcessPurgeAndSuspend();
216 virtual void OnProcessResume();
216 217
217 // IPC::Listener implementation: 218 // IPC::Listener implementation:
218 bool OnMessageReceived(const IPC::Message& msg) override; 219 bool OnMessageReceived(const IPC::Message& msg) override;
219 void OnChannelConnected(int32_t peer_pid) override; 220 void OnChannelConnected(int32_t peer_pid) override;
220 void OnChannelError() override; 221 void OnChannelError() override;
221 222
222 bool IsInBrowserProcess() const; 223 bool IsInBrowserProcess() const;
223 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner(); 224 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner();
224 225
225 private: 226 private:
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 359
359 private: 360 private:
360 struct Options options_; 361 struct Options options_;
361 362
362 DISALLOW_COPY_AND_ASSIGN(Builder); 363 DISALLOW_COPY_AND_ASSIGN(Builder);
363 }; 364 };
364 365
365 } // namespace content 366 } // namespace content
366 367
367 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 368 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698