scheduler: Rename WebPageScheduler to WebFrameHostScheduler
Rename the WebPageScheduler as WebFrameHostScheduler since we eventually
want to hang this object off of FrameHost instead of Page.
BUG=510398
Review URL: https://codereview.chromium.org/1348853002
git-svn-id: svn://svn.chromium.org/blink/trunk/public@202580 bbb929c8-8fbe-4397-9dbb-9b2b20218538
diff --git a/platform/WebFrameHostScheduler.h b/platform/WebFrameHostScheduler.h
new file mode 100644
index 0000000..d64b29b
--- /dev/null
+++ b/platform/WebFrameHostScheduler.h
@@ -0,0 +1,27 @@
+// Copyright 2015 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 WebFrameHostScheduler_h
+#define WebFrameHostScheduler_h
+
+#include "WebCommon.h"
+
+namespace blink {
+
+class WebFrameScheduler;
+
+class BLINK_PLATFORM_EXPORT WebFrameHostScheduler {
+public:
+ virtual ~WebFrameHostScheduler() { }
+
+ // The scheduler may throttle tasks associated with background pages.
+ virtual void setPageInBackground(bool) { }
+
+ // Creaters a new WebFrameScheduler, the caller is responsible for deleting it.
+ virtual WebFrameScheduler* createFrameScheduler() { return nullptr; }
+};
+
+} // namespace blink
+
+#endif // WebFrameHostScheduler
diff --git a/platform/WebPageScheduler.h b/platform/WebPageScheduler.h
deleted file mode 100644
index b6ca97a..0000000
--- a/platform/WebPageScheduler.h
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2015 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 WebPageScheduler_h
-#define WebPageScheduler_h
-
-#include "WebCommon.h"
-
-namespace blink {
-
-class WebFrameScheduler;
-
-class BLINK_PLATFORM_EXPORT WebPageScheduler {
-public:
- virtual ~WebPageScheduler() { }
-
- // The scheduler may throttle tasks associated with backgound pages.
- virtual void setPageInBackground(bool) { }
-
- // Creaters a new WebFrameScheduler, the caller is responsible for deleting it.
- WebFrameScheduler* createFrameScheduler() { return nullptr; }
-};
-
-} // namespace blink
-
-#endif // WebPageScheduler_h
diff --git a/platform/WebScheduler.h b/platform/WebScheduler.h
index dd0105f..1229186 100644
--- a/platform/WebScheduler.h
+++ b/platform/WebScheduler.h
@@ -11,7 +11,7 @@
namespace blink {
-class WebPageScheduler;
+class WebFrameHostScheduler;
class WebTraceLocation;
// This class is used to submit tasks and pass other information from Blink to
@@ -73,8 +73,8 @@
// Returns a WebTaskRunner for timer tasks. Can be called from any thread.
virtual WebTaskRunner* timerTaskRunner() { return nullptr; }
- // Creates a new WebPageScheduler. Must be called from the associated WebThread.
- virtual WebPageScheduler* createPageScheduler() { return nullptr; }
+ // Creates a new WebFrameHostScheduler. Must be called from the associated WebThread.
+ virtual WebFrameHostScheduler* createFrameHostScheduler() { return nullptr; }
// Suspends the timer queue and increments the timer queue suspension count.
// May only be called from the main thread.