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

Side by Side Diff: third_party/WebKit/Source/core/testing/NullExecutionContext.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/testing/NullExecutionContext.h" 5 #include "core/testing/NullExecutionContext.h"
6 6
7 #include "core/dom/ExecutionContextTask.h" 7 #include "core/dom/ExecutionContextTask.h"
8 #include "core/events/Event.h" 8 #include "core/events/Event.h"
9 #include "core/frame/DOMTimer.h" 9 #include "core/frame/DOMTimer.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 namespace { 13 namespace {
14 14
15 class NullEventQueue final : public EventQueue { 15 class NullEventQueue final : public EventQueue {
16 public: 16 public:
17 NullEventQueue() { } 17 NullEventQueue() { }
18 ~NullEventQueue() override { } 18 ~NullEventQueue() override { }
19 bool enqueueEvent(PassRefPtrWillBeRawPtr<Event>) override { return true; } 19 bool enqueueEvent(RawPtr<Event>) override { return true; }
20 bool cancelEvent(Event*) override { return true; } 20 bool cancelEvent(Event*) override { return true; }
21 void close() override { } 21 void close() override { }
22 }; 22 };
23 23
24 } // namespace 24 } // namespace
25 25
26 NullExecutionContext::NullExecutionContext() 26 NullExecutionContext::NullExecutionContext()
27 : m_tasksNeedSuspension(false) 27 : m_tasksNeedSuspension(false)
28 , m_queue(adoptPtrWillBeNoop(new NullEventQueue())) 28 , m_queue((new NullEventQueue()))
29 { 29 {
30 } 30 }
31 31
32 void NullExecutionContext::postTask(const WebTraceLocation&, PassOwnPtr<Executio nContextTask>) 32 void NullExecutionContext::postTask(const WebTraceLocation&, PassOwnPtr<Executio nContextTask>)
33 { 33 {
34 } 34 }
35 35
36 bool NullExecutionContext::isSecureContext(String& errorMessage, const SecureCon textCheck privilegeContextCheck) const 36 bool NullExecutionContext::isSecureContext(String& errorMessage, const SecureCon textCheck privilegeContextCheck) const
37 { 37 {
38 return true; 38 return true;
39 } 39 }
40 40
41 } // namespace blink 41 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698