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

Side by Side Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h

Issue 2568063003: Remove WebTaskRunner::Task (Closed)
Patch Set: . Created 4 years 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
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 WebThread::IdleTask*) override {} 101 WebThread::IdleTask*) override {}
102 std::unique_ptr<WebViewScheduler> createWebViewScheduler( 102 std::unique_ptr<WebViewScheduler> createWebViewScheduler(
103 InterventionReporter*, 103 InterventionReporter*,
104 WebViewScheduler::WebViewSchedulerSettings*) override { 104 WebViewScheduler::WebViewSchedulerSettings*) override {
105 return nullptr; 105 return nullptr;
106 } 106 }
107 void suspendTimerQueue() override {} 107 void suspendTimerQueue() override {}
108 void resumeTimerQueue() override {} 108 void resumeTimerQueue() override {}
109 void addPendingNavigation(WebScheduler::NavigatingFrameType) override {} 109 void addPendingNavigation(WebScheduler::NavigatingFrameType) override {}
110 void removePendingNavigation(WebScheduler::NavigatingFrameType) override {} 110 void removePendingNavigation(WebScheduler::NavigatingFrameType) override {}
111
112 private:
113 WTF::Deque<std::unique_ptr<WebTaskRunner::Task>> m_tasks;
114 }; 111 };
115 112
116 class TestingPlatformSupport : public Platform { 113 class TestingPlatformSupport : public Platform {
117 WTF_MAKE_NONCOPYABLE(TestingPlatformSupport); 114 WTF_MAKE_NONCOPYABLE(TestingPlatformSupport);
118 115
119 public: 116 public:
120 struct Config { 117 struct Config {
121 WebCompositorSupport* compositorSupport = nullptr; 118 WebCompositorSupport* compositorSupport = nullptr;
122 }; 119 };
123 120
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 m_discardableMemoryAllocator; 204 m_discardableMemoryAllocator;
208 std::unique_ptr<DummyPlatform> m_platform; 205 std::unique_ptr<DummyPlatform> m_platform;
209 std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport; 206 std::unique_ptr<cc_blink::WebCompositorSupportImpl> m_compositorSupport;
210 TestingPlatformSupport::Config m_testingPlatformConfig; 207 TestingPlatformSupport::Config m_testingPlatformConfig;
211 std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport; 208 std::unique_ptr<TestingPlatformSupport> m_testingPlatformSupport;
212 }; 209 };
213 210
214 } // namespace blink 211 } // namespace blink
215 212
216 #endif // TestingPlatformSupport_h 213 #endif // TestingPlatformSupport_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698