| 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 019696c8e57256b07af1d52ed36c1f7cf6e94293..0000000000000000000000000000000000000000
|
| --- a/components/scheduler/renderer/web_view_scheduler_impl.h
|
| +++ /dev/null
|
| @@ -1,86 +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 AutoAdvancingVirtualTimeDomain;
|
| -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);
|
| -
|
| - private:
|
| - friend class WebFrameSchedulerImpl;
|
| -
|
| - void Unregister(WebFrameSchedulerImpl* frame_scheduler);
|
| -
|
| - AutoAdvancingVirtualTimeDomain* virtual_time_domain() const {
|
| - return virtual_time_domain_.get();
|
| - }
|
| -
|
| - void setAllowVirtualTimeToAdvance(bool allow_virtual_time_to_advance);
|
| -
|
| - std::set<WebFrameSchedulerImpl*> frame_schedulers_;
|
| - std::set<unsigned long> pending_loads_;
|
| - std::unique_ptr<AutoAdvancingVirtualTimeDomain> virtual_time_domain_;
|
| - TaskQueue::PumpPolicy virtual_time_pump_policy_;
|
| - blink::WebView* web_view_;
|
| - RendererSchedulerImpl* renderer_scheduler_;
|
| - VirtualTimePolicy virtual_time_policy_;
|
| - bool page_visible_;
|
| - bool disable_background_timer_throttling_;
|
| - bool allow_virtual_time_to_advance_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(WebViewSchedulerImpl);
|
| -};
|
| -
|
| -} // namespace scheduler
|
| -
|
| -#endif // COMPONENTS_SCHEDULER_RENDERER_WEB_VIEW_SCHEDULER_IMPL_H_
|
|
|