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

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

Issue 1914143002: Experimental 'purging and suspending' backgrounded tabs behind the flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address on haraken's review Created 4 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_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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 protected: 189 protected:
190 friend class ChildProcess; 190 friend class ChildProcess;
191 191
192 // Called when the process refcount is 0. 192 // Called when the process refcount is 0.
193 void OnProcessFinalRelease(); 193 void OnProcessFinalRelease();
194 194
195 virtual bool OnControlMessageReceived(const IPC::Message& msg); 195 virtual bool OnControlMessageReceived(const IPC::Message& msg);
196 virtual void OnProcessBackgrounded(bool backgrounded); 196 virtual void OnProcessBackgrounded(bool backgrounded);
197 virtual void OnProcessPurgeAndSuspend();
197 198
198 // IPC::Listener implementation: 199 // IPC::Listener implementation:
199 bool OnMessageReceived(const IPC::Message& msg) override; 200 bool OnMessageReceived(const IPC::Message& msg) override;
200 void OnChannelConnected(int32_t peer_pid) override; 201 void OnChannelConnected(int32_t peer_pid) override;
201 void OnChannelError() override; 202 void OnChannelError() override;
202 203
203 bool IsInBrowserProcess() const; 204 bool IsInBrowserProcess() const;
204 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner(); 205 scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner();
205 206
206 private: 207 private:
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 325
325 private: 326 private:
326 struct Options options_; 327 struct Options options_;
327 328
328 DISALLOW_COPY_AND_ASSIGN(Builder); 329 DISALLOW_COPY_AND_ASSIGN(Builder);
329 }; 330 };
330 331
331 } // namespace content 332 } // namespace content
332 333
333 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 334 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698