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

Side by Side Diff: content/renderer/scheduler/renderer_scheduler_impl.h

Issue 847883002: Reland "Throttle resource message requests during user interaction" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 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 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 CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_
6 #define CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ 6 #define CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // RendererScheduler implementation: 31 // RendererScheduler implementation:
32 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override; 32 scoped_refptr<base::SingleThreadTaskRunner> DefaultTaskRunner() override;
33 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override; 33 scoped_refptr<base::SingleThreadTaskRunner> CompositorTaskRunner() override;
34 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override; 34 scoped_refptr<SingleThreadIdleTaskRunner> IdleTaskRunner() override;
35 void WillBeginFrame(const cc::BeginFrameArgs& args) override; 35 void WillBeginFrame(const cc::BeginFrameArgs& args) override;
36 void DidCommitFrameToCompositor() override; 36 void DidCommitFrameToCompositor() override;
37 void DidReceiveInputEventOnCompositorThread( 37 void DidReceiveInputEventOnCompositorThread(
38 blink::WebInputEvent::Type type) override; 38 blink::WebInputEvent::Type type) override;
39 void DidAnimateForInputOnCompositorThread() override; 39 void DidAnimateForInputOnCompositorThread() override;
40 bool ShouldAnticipateHighPriorityWork() override;
40 bool ShouldYieldForHighPriorityWork() override; 41 bool ShouldYieldForHighPriorityWork() override;
41 void Shutdown() override; 42 void Shutdown() override;
42 43
43 protected: 44 protected:
44 // Virtual for testing. 45 // Virtual for testing.
45 virtual base::TimeTicks Now() const; 46 virtual base::TimeTicks Now() const;
46 47
47 private: 48 private:
48 friend class RendererSchedulerImplTest; 49 friend class RendererSchedulerImplTest;
49 50
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 137
137 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_; 138 base::WeakPtr<RendererSchedulerImpl> weak_renderer_scheduler_ptr_;
138 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 139 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
139 140
140 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 141 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
141 }; 142 };
142 143
143 } // namespace content 144 } // namespace content
144 145
145 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_ 146 #endif // CONTENT_RENDERER_SCHEDULER_RENDERER_SCHEDULER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698