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

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

Issue 1504403003: Calling isSecureContext() with no arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 #ifndef NullExecutionContext_h 5 #ifndef NullExecutionContext_h
6 #define NullExecutionContext_h 6 #define NullExecutionContext_h
7 7
8 #include "core/dom/ExecutionContext.h" 8 #include "core/dom/ExecutionContext.h"
9 #include "core/dom/SecurityContext.h" 9 #include "core/dom/SecurityContext.h"
10 #include "core/events/EventQueue.h" 10 #include "core/events/EventQueue.h"
(...skipping 23 matching lines...) Expand all
34 34
35 void reportBlockedScriptExecutionToInspector(const String& directiveText) ov erride { } 35 void reportBlockedScriptExecutionToInspector(const String& directiveText) ov erride { }
36 void didUpdateSecurityOrigin() override { } 36 void didUpdateSecurityOrigin() override { }
37 SecurityContext& securityContext() override { return *this; } 37 SecurityContext& securityContext() override { return *this; }
38 DOMTimerCoordinator* timers() override { return nullptr; } 38 DOMTimerCoordinator* timers() override { return nullptr; }
39 39
40 void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override { } 40 void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) override { }
41 void logExceptionToConsole(const String& errorMessage, int scriptId, const S tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip tCallStack>) override { } 41 void logExceptionToConsole(const String& errorMessage, int scriptId, const S tring& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<Scrip tCallStack>) override { }
42 42
43 bool isSecureContext(String& errorMessage, const SecureContextCheck = Standa rdSecureContextCheck) const override; 43 bool isSecureContext(String& errorMessage, const SecureContextCheck = Standa rdSecureContextCheck) const override;
44 bool isSecureContext(const SecureContextCheck = StandardSecureContextCheck) const override;
44 45
45 DEFINE_INLINE_TRACE() 46 DEFINE_INLINE_TRACE()
46 { 47 {
47 visitor->trace(m_queue); 48 visitor->trace(m_queue);
48 SecurityContext::trace(visitor); 49 SecurityContext::trace(visitor);
49 ExecutionContext::trace(visitor); 50 ExecutionContext::trace(visitor);
50 } 51 }
51 52
52 #if !ENABLE(OILPAN) 53 #if !ENABLE(OILPAN)
53 using RefCounted<NullExecutionContext>::ref; 54 using RefCounted<NullExecutionContext>::ref;
(...skipping 10 matching lines...) Expand all
64 private: 65 private:
65 bool m_tasksNeedSuspension; 66 bool m_tasksNeedSuspension;
66 OwnPtrWillBeMember<EventQueue> m_queue; 67 OwnPtrWillBeMember<EventQueue> m_queue;
67 68
68 KURL m_dummyURL; 69 KURL m_dummyURL;
69 }; 70 };
70 71
71 } // namespace blink 72 } // namespace blink
72 73
73 #endif // NullExecutionContext_h 74 #endif // NullExecutionContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698