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

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

Issue 1683583002: Report user actions when gesture starts and stops in user_model. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not register action callback in single process. Created 4 years, 8 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 | components/scheduler/renderer/renderer_scheduler_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 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 bool have_seen_a_begin_main_frame; 340 bool have_seen_a_begin_main_frame;
341 bool have_reported_blocking_intervention_in_current_policy; 341 bool have_reported_blocking_intervention_in_current_policy;
342 bool have_reported_blocking_intervention_since_navigation; 342 bool have_reported_blocking_intervention_since_navigation;
343 bool has_visible_render_widget_with_touch_handler; 343 bool has_visible_render_widget_with_touch_handler;
344 bool begin_frame_not_expected_soon; 344 bool begin_frame_not_expected_soon;
345 bool expensive_task_blocking_allowed; 345 bool expensive_task_blocking_allowed;
346 std::set<WebViewSchedulerImpl*> web_view_schedulers_; // Not owned. 346 std::set<WebViewSchedulerImpl*> web_view_schedulers_; // Not owned.
347 }; 347 };
348 348
349 struct AnyThread { 349 struct AnyThread {
350 AnyThread(); 350 explicit AnyThread(
351 scoped_refptr<base::SingleThreadTaskRunner> default_task_runner);
351 ~AnyThread(); 352 ~AnyThread();
352 353
353 base::TimeTicks last_idle_period_end_time; 354 base::TimeTicks last_idle_period_end_time;
354 base::TimeTicks rails_loading_priority_deadline; 355 base::TimeTicks rails_loading_priority_deadline;
355 base::TimeTicks fling_compositor_escalation_deadline; 356 base::TimeTicks fling_compositor_escalation_deadline;
356 UserModel user_model; 357 UserModel user_model;
357 bool awaiting_touch_start_response; 358 bool awaiting_touch_start_response;
358 bool in_idle_period; 359 bool in_idle_period;
359 bool begin_main_frame_on_critical_path; 360 bool begin_main_frame_on_critical_path;
360 bool last_gesture_was_compositor_driven; 361 bool last_gesture_was_compositor_driven;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 412
412 PollableThreadSafeFlag policy_may_need_update_; 413 PollableThreadSafeFlag policy_may_need_update_;
413 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 414 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
414 415
415 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 416 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
416 }; 417 };
417 418
418 } // namespace scheduler 419 } // namespace scheduler
419 420
420 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 421 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | components/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698