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

Side by Side Diff: components/scheduler/renderer/renderer_scheduler_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void BeginFrameNotExpectedSoon() override; 56 void BeginFrameNotExpectedSoon() override;
57 void DidCommitFrameToCompositor() override; 57 void DidCommitFrameToCompositor() override;
58 void DidHandleInputEventOnCompositorThread( 58 void DidHandleInputEventOnCompositorThread(
59 const blink::WebInputEvent& web_input_event, 59 const blink::WebInputEvent& web_input_event,
60 InputEventState event_state) override; 60 InputEventState event_state) override;
61 void DidHandleInputEventOnMainThread( 61 void DidHandleInputEventOnMainThread(
62 const blink::WebInputEvent& web_input_event) override; 62 const blink::WebInputEvent& web_input_event) override;
63 void DidAnimateForInputOnCompositorThread() override; 63 void DidAnimateForInputOnCompositorThread() override;
64 void OnRendererBackgrounded() override; 64 void OnRendererBackgrounded() override;
65 void OnRendererForegrounded() override; 65 void OnRendererForegrounded() override;
66 void SuspendRenderer() override;
66 void AddPendingNavigation( 67 void AddPendingNavigation(
67 blink::WebScheduler::NavigatingFrameType type) override; 68 blink::WebScheduler::NavigatingFrameType type) override;
68 void RemovePendingNavigation( 69 void RemovePendingNavigation(
69 blink::WebScheduler::NavigatingFrameType type) override; 70 blink::WebScheduler::NavigatingFrameType type) override;
70 void OnNavigationStarted() override; 71 void OnNavigationStarted() override;
71 bool IsHighPriorityWorkAnticipated() override; 72 bool IsHighPriorityWorkAnticipated() override;
72 bool ShouldYieldForHighPriorityWork() override; 73 bool ShouldYieldForHighPriorityWork() override;
73 bool CanExceedIdleDeadlineIfRequired() const override; 74 bool CanExceedIdleDeadlineIfRequired() const override;
74 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override; 75 void AddTaskObserver(base::MessageLoop::TaskObserver* task_observer) override;
75 void RemoveTaskObserver( 76 void RemoveTaskObserver(
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 415
415 PollableThreadSafeFlag policy_may_need_update_; 416 PollableThreadSafeFlag policy_may_need_update_;
416 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 417 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
417 418
418 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 419 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
419 }; 420 };
420 421
421 } // namespace scheduler 422 } // namespace scheduler
422 423
423 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 424 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « components/scheduler/renderer/renderer_scheduler.h ('k') | components/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698