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

Unified Diff: components/scheduler/renderer/web_view_scheduler_impl.h

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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: components/scheduler/renderer/web_view_scheduler_impl.h
diff --git a/components/scheduler/renderer/web_view_scheduler_impl.h b/components/scheduler/renderer/web_view_scheduler_impl.h
deleted file mode 100644
index 6f69845ae911e41fa81fec641ef6f3eb220ba215..0000000000000000000000000000000000000000
--- a/components/scheduler/renderer/web_view_scheduler_impl.h
+++ /dev/null
@@ -1,82 +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 COMPONENTS_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER_IMPL_H_
-#define COMPONENTS_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER_IMPL_H_
-
-#include <memory>
-#include <set>
-#include <string>
-
-#include "base/macros.h"
-#include "components/scheduler/base/task_queue.h"
-#include "components/scheduler/scheduler_export.h"
-#include "third_party/WebKit/public/platform/WebViewScheduler.h"
-
-namespace base {
-namespace trace_event {
-class BlameContext;
-} // namespace trace_event
-class SingleThreadTaskRunner;
-} // namespace base
-
-namespace blink {
-class WebView;
-} // namespace blink
-
-namespace scheduler {
-
-class RendererSchedulerImpl;
-class WebFrameSchedulerImpl;
-
-class SCHEDULER_EXPORT WebViewSchedulerImpl : public blink::WebViewScheduler {
- public:
- WebViewSchedulerImpl(blink::WebView* web_view,
- RendererSchedulerImpl* renderer_scheduler,
- bool disable_background_timer_throttling);
-
- ~WebViewSchedulerImpl() override;
-
- // blink::WebViewScheduler implementation:
- void setPageVisible(bool page_visible) override;
- std::unique_ptr<blink::WebFrameScheduler> createFrameScheduler(
- blink::BlameContext* blame_context) override;
- void enableVirtualTime() override;
- bool virtualTimeAllowedToAdvance() const override;
- void setVirtualTimePolicy(VirtualTimePolicy virtual_time_policy) override;
-
- // Virtual for testing.
- virtual void AddConsoleWarning(const std::string& message);
-
- std::unique_ptr<WebFrameSchedulerImpl> createWebFrameSchedulerImpl(
- base::trace_event::BlameContext* blame_context);
-
- void DidStartLoading(unsigned long identifier);
- void DidStopLoading(unsigned long identifier);
- void IncrementBackgroundParserCount();
- void DecrementBackgroundParserCount();
- void Unregister(WebFrameSchedulerImpl* frame_scheduler);
-
- private:
- void setAllowVirtualTimeToAdvance(bool allow_virtual_time_to_advance);
- void ApplyVirtualTimePolicy();
-
- std::set<WebFrameSchedulerImpl*> frame_schedulers_;
- std::set<unsigned long> pending_loads_;
- blink::WebView* web_view_;
- RendererSchedulerImpl* renderer_scheduler_;
- VirtualTimePolicy virtual_time_policy_;
- int background_parser_count_;
- bool page_visible_;
- bool disable_background_timer_throttling_;
- bool allow_virtual_time_to_advance_;
- bool have_seen_loading_task_;
- bool virtual_time_;
-
- DISALLOW_COPY_AND_ASSIGN(WebViewSchedulerImpl);
-};
-
-} // namespace scheduler
-
-#endif // COMPONENTS_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER_IMPL_H_
« no previous file with comments | « components/scheduler/renderer/web_frame_scheduler_impl.cc ('k') | components/scheduler/renderer/web_view_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698