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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2648323005: memory coordinator: Add MemoryCoordinatorClient::OnPurgeMemory() (Closed)
Patch Set: Created 3 years, 11 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_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 std::unique_ptr<base::MessageLoop> main_message_loop, 505 std::unique_ptr<base::MessageLoop> main_message_loop,
506 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); 506 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler);
507 507
508 private: 508 private:
509 // IPC::Listener 509 // IPC::Listener
510 void OnChannelError() override; 510 void OnChannelError() override;
511 511
512 // ChildThread 512 // ChildThread
513 bool OnControlMessageReceived(const IPC::Message& msg) override; 513 bool OnControlMessageReceived(const IPC::Message& msg) override;
514 void OnProcessBackgrounded(bool backgrounded) override; 514 void OnProcessBackgrounded(bool backgrounded) override;
515 void OnProcessResume() override;
516 void OnProcessPurgeAndSuspend() override; 515 void OnProcessPurgeAndSuspend() override;
517 void RecordAction(const base::UserMetricsAction& action) override; 516 void RecordAction(const base::UserMetricsAction& action) override;
518 void RecordComputedAction(const std::string& action) override; 517 void RecordComputedAction(const std::string& action) override;
519 518
520 bool IsMainThread(); 519 bool IsMainThread();
521 520
522 // base::MemoryCoordinatorClient implementation: 521 // base::MemoryCoordinatorClient implementation:
523 void OnMemoryStateChange(base::MemoryState state) override; 522 void OnMemoryStateChange(base::MemoryState state) override;
523 void OnPurgeMemory() override;
524 524
525 void ClearMemory(); 525 void ClearMemory();
526 526
527 void Init( 527 void Init(
528 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 528 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
529 529
530 void InitializeCompositorThread(); 530 void InitializeCompositorThread();
531 531
532 void InitializeWebKit( 532 void InitializeWebKit(
533 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 533 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 772 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
773 }; 773 };
774 774
775 #if defined(COMPILER_MSVC) 775 #if defined(COMPILER_MSVC)
776 #pragma warning(pop) 776 #pragma warning(pop)
777 #endif 777 #endif
778 778
779 } // namespace content 779 } // namespace content
780 780
781 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 781 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698