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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/test_task_time_tracker.h

Issue 2273703002: Force events to be non blocking if main thread is unresponsive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Dave's comments. Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TEST_TASK_TIME_TRACKER _H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TEST_TASK_TIME_TRACKER _H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TEST_TASK_TIME_TRACKER _H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TEST_TASK_TIME_TRACKER _H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "platform/scheduler/base/task_time_tracker.h" 9 #include "platform/scheduler/base/task_time_tracker.h"
10 10
11 namespace blink { 11 namespace blink {
12 namespace scheduler { 12 namespace scheduler {
13 13
14 class TestTaskTimeTracker : public TaskTimeTracker { 14 class TestTaskTimeTracker : public TaskTimeTracker {
15 public: 15 public:
16 void ReportTaskStartTime(base::TimeTicks startTime) override {}
Sami 2016/08/24 14:56:01 nit: This feels weirdly asymmetric now that both m
tdresser 2016/08/24 17:22:50 Done.
16 void ReportTaskTime(base::TimeTicks startTime, 17 void ReportTaskTime(base::TimeTicks startTime,
17 base::TimeTicks endTime) override {} 18 base::TimeTicks endTime) override {}
18 }; 19 };
19 20
20 } // namespace scheduler 21 } // namespace scheduler
21 } // namespace blink 22 } // namespace blink
22 23
23 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TEST_TASK_TIME_TRAC KER_H_ 24 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TEST_TASK_TIME_TRAC KER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698