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

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

Issue 2688653002: Implement OnPurgeMemory callback for RenderThreadImpl (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 void OnProcessBackgrounded(bool backgrounded) override; 519 void OnProcessBackgrounded(bool backgrounded) override;
520 void OnProcessResume() override; 520 void OnProcessResume() override;
521 void OnProcessPurgeAndSuspend() override; 521 void OnProcessPurgeAndSuspend() override;
522 void RecordAction(const base::UserMetricsAction& action) override; 522 void RecordAction(const base::UserMetricsAction& action) override;
523 void RecordComputedAction(const std::string& action) override; 523 void RecordComputedAction(const std::string& action) override;
524 524
525 bool IsMainThread(); 525 bool IsMainThread();
526 526
527 // base::MemoryCoordinatorClient implementation: 527 // base::MemoryCoordinatorClient implementation:
528 void OnMemoryStateChange(base::MemoryState state) override; 528 void OnMemoryStateChange(base::MemoryState state) override;
529 void OnPurgeMemory() override;
529 530
530 void ClearMemory(); 531 void ClearMemory();
531 532
532 void Init( 533 void Init(
533 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 534 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
534 535
535 void InitializeCompositorThread(); 536 void InitializeCompositorThread();
536 537
537 void InitializeWebKit( 538 void InitializeWebKit(
538 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue); 539 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue);
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 779 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
779 }; 780 };
780 781
781 #if defined(COMPILER_MSVC) 782 #if defined(COMPILER_MSVC)
782 #pragma warning(pop) 783 #pragma warning(pop)
783 #endif 784 #endif
784 785
785 } // namespace content 786 } // namespace content
786 787
787 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 788 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698