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

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

Issue 1962053002: Allow expensive task blocking if there is pending iframe navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use an enum Created 4 years, 7 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 unified diff | Download patch
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 WebTaskRunner* timerTaskRunner() override; 62 WebTaskRunner* timerTaskRunner() override;
63 void shutdown() override {} 63 void shutdown() override {}
64 bool shouldYieldForHighPriorityWork() override { return false; } 64 bool shouldYieldForHighPriorityWork() override { return false; }
65 bool canExceedIdleDeadlineIfRequired() override { return false; } 65 bool canExceedIdleDeadlineIfRequired() override { return false; }
66 void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override { } 66 void postIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override { }
67 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override { } 67 void postNonNestableIdleTask(const WebTraceLocation&, WebThread::IdleTask*) override { }
68 void postIdleTaskAfterWakeup(const WebTraceLocation&, WebThread::IdleTask*) override { } 68 void postIdleTaskAfterWakeup(const WebTraceLocation&, WebThread::IdleTask*) override { }
69 std::unique_ptr<WebViewScheduler> createWebViewScheduler(blink::WebView*) ov erride { return nullptr; } 69 std::unique_ptr<WebViewScheduler> createWebViewScheduler(blink::WebView*) ov erride { return nullptr; }
70 void suspendTimerQueue() override { } 70 void suspendTimerQueue() override { }
71 void resumeTimerQueue() override { } 71 void resumeTimerQueue() override { }
72 void addPendingNavigation() override { } 72 void addPendingNavigation(WebScheduler::NavigatingFrameType) override { }
73 void removePendingNavigation() override { } 73 void removePendingNavigation(WebScheduler::NavigatingFrameType) override { }
74 void onNavigationStarted() override { } 74 void onNavigationStarted() override { }
75 75
76 private: 76 private:
77 WTF::Deque<OwnPtr<WebTaskRunner::Task>> m_tasks; 77 WTF::Deque<OwnPtr<WebTaskRunner::Task>> m_tasks;
78 OwnPtr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner; 78 OwnPtr<TestingPlatformMockWebTaskRunner> m_mockWebTaskRunner;
79 }; 79 };
80 80
81 class TestingPlatformSupport : public Platform { 81 class TestingPlatformSupport : public Platform {
82 WTF_MAKE_NONCOPYABLE(TestingPlatformSupport); 82 WTF_MAKE_NONCOPYABLE(TestingPlatformSupport);
83 public: 83 public:
(...skipping 29 matching lines...) Expand all
113 WebThread* currentThread() override; 113 WebThread* currentThread() override;
114 TestingPlatformMockScheduler* mockWebScheduler(); 114 TestingPlatformMockScheduler* mockWebScheduler();
115 115
116 protected: 116 protected:
117 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread; 117 OwnPtr<TestingPlatformMockWebThread> m_mockWebThread;
118 }; 118 };
119 119
120 } // namespace blink 120 } // namespace blink
121 121
122 #endif // TestingPlatformSupport_h 122 #endif // TestingPlatformSupport_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/TimerTest.cpp ('k') | third_party/WebKit/public/platform/WebScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698