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

Unified Diff: third_party/WebKit/public/platform/scheduler/base/task_time_observer.h

Issue 2812313002: [scheduler] Remove blink::scheduler::TaskQueue from public API. (Closed)
Patch Set: Rebased & addressed skyostil@'s comment Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/platform/scheduler/base/task_time_observer.h
diff --git a/third_party/WebKit/public/platform/scheduler/base/task_time_observer.h b/third_party/WebKit/public/platform/scheduler/base/task_time_observer.h
deleted file mode 100644
index 0257e328a66bc8f208ca81c84c9ead96827f6ea6..0000000000000000000000000000000000000000
--- a/third_party/WebKit/public/platform/scheduler/base/task_time_observer.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_H_
-#define THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_H_
-
-#include "base/time/time.h"
-#include "public/platform/WebCommon.h"
-
-namespace blink {
-namespace scheduler {
-
-class TaskQueue;
-
-// TaskTimeObserver provides an API for observing completion of renderer tasks.
-class BLINK_PLATFORM_EXPORT TaskTimeObserver {
- public:
- TaskTimeObserver() {}
- virtual ~TaskTimeObserver() {}
-
- // Callback to be called when task is about to start.
- // |task_queue| - TaskQueue on which this task will run,
- // |start_time| - time in seconds when task started to run,
- virtual void WillProcessTask(TaskQueue* task_queue, double start_time) = 0;
-
- // Callback to be called when task is completed.
- // |task_queue| - TaskQueue on which this task was run,
- // |start_time| - time in seconds when task started to run,
- // |end_time| - time in seconds when task was completed.
- virtual void DidProcessTask(TaskQueue* task_queue,
- double start_time,
- double end_time) = 0;
-
- // Callback to be called when we enter a nested message loop.
- virtual void OnBeginNestedMessageLoop() = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(TaskTimeObserver);
-};
-
-} // namespace scheduler
-} // namespace blink
-
-#endif // THIRD_PARTY_WEBKIT_PUBLIC_PLATFORM_SCHEDULER_BASE_TASK_TIME_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698