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

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

Issue 2387603003: Resume a backgrounded renderer that was purged and suspended (Closed)
Patch Set: Added transition: => RUNNING 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 // Called by subclasses to manually start the ServiceManagerConnection. Must 208 // Called by subclasses to manually start the ServiceManagerConnection. Must
209 // only be called if 209 // only be called if
210 // ChildThreadImpl::Options::auto_start_service_manager_connection was set to 210 // ChildThreadImpl::Options::auto_start_service_manager_connection was set to
211 // |false| on ChildThreadImpl construction. 211 // |false| on ChildThreadImpl construction.
212 void StartServiceManagerConnection(); 212 void StartServiceManagerConnection();
213 213
214 virtual bool OnControlMessageReceived(const IPC::Message& msg); 214 virtual bool OnControlMessageReceived(const IPC::Message& msg);
215 virtual void OnProcessBackgrounded(bool backgrounded); 215 virtual void OnProcessBackgrounded(bool backgrounded);
216 virtual void OnProcessPurgeAndSuspend(); 216 virtual void OnProcessPurgeAndSuspend();
217 virtual void OnProcessResume();
217 218
218 // IPC::Listener implementation: 219 // IPC::Listener implementation:
219 bool OnMessageReceived(const IPC::Message& msg) override; 220 bool OnMessageReceived(const IPC::Message& msg) override;
220 void OnChannelConnected(int32_t peer_pid) override; 221 void OnChannelConnected(int32_t peer_pid) override;
221 void OnChannelError() override; 222 void OnChannelError() override;
222 223
223 bool IsInBrowserProcess() const; 224 bool IsInBrowserProcess() const;
224 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner(); 225 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner();
225 226
226 private: 227 private:
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 360
360 private: 361 private:
361 struct Options options_; 362 struct Options options_;
362 363
363 DISALLOW_COPY_AND_ASSIGN(Builder); 364 DISALLOW_COPY_AND_ASSIGN(Builder);
364 }; 365 };
365 366
366 } // namespace content 367 } // namespace content
367 368
368 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 369 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698