OLD | NEW |
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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 std::unique_ptr<base::MessageLoop> main_message_loop, | 508 std::unique_ptr<base::MessageLoop> main_message_loop, |
509 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); | 509 std::unique_ptr<blink::scheduler::RendererScheduler> scheduler); |
510 | 510 |
511 private: | 511 private: |
512 // IPC::Listener | 512 // IPC::Listener |
513 void OnChannelError() override; | 513 void OnChannelError() override; |
514 | 514 |
515 // ChildThread | 515 // ChildThread |
516 bool OnControlMessageReceived(const IPC::Message& msg) override; | 516 bool OnControlMessageReceived(const IPC::Message& msg) override; |
517 void OnProcessBackgrounded(bool backgrounded) override; | 517 void OnProcessBackgrounded(bool backgrounded) override; |
518 void OnProcessResume() override; | |
519 void OnProcessPurgeAndSuspend() override; | 518 void OnProcessPurgeAndSuspend() override; |
520 void RecordAction(const base::UserMetricsAction& action) override; | 519 void RecordAction(const base::UserMetricsAction& action) override; |
521 void RecordComputedAction(const std::string& action) override; | 520 void RecordComputedAction(const std::string& action) override; |
522 | 521 |
523 bool IsMainThread(); | 522 bool IsMainThread(); |
524 | 523 |
525 // base::MemoryCoordinatorClient implementation: | 524 // base::MemoryCoordinatorClient implementation: |
526 void OnMemoryStateChange(base::MemoryState state) override; | 525 void OnMemoryStateChange(base::MemoryState state) override; |
527 void OnPurgeMemory() override; | 526 void OnPurgeMemory() override; |
528 | 527 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 773 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
775 }; | 774 }; |
776 | 775 |
777 #if defined(COMPILER_MSVC) | 776 #if defined(COMPILER_MSVC) |
778 #pragma warning(pop) | 777 #pragma warning(pop) |
779 #endif | 778 #endif |
780 | 779 |
781 } // namespace content | 780 } // namespace content |
782 | 781 |
783 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 782 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |