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

Side by Side Diff: third_party/WebKit/Source/core/workers/WorkletGlobalScope.h

Issue 2838603002: Added [SecureContext] to the subtle attribute (Closed)
Patch Set: Magic test starts doing differnt things out of the blue. Need to handle this properly. Avada Kedavr… Created 3 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 WorkletGlobalScope_h 5 #ifndef WorkletGlobalScope_h
6 #define WorkletGlobalScope_h 6 #define WorkletGlobalScope_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/dom/ExecutionContext.h" 10 #include "core/dom/ExecutionContext.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // ExecutionContext 56 // ExecutionContext
57 void DisableEval(const String& error_message) final; 57 void DisableEval(const String& error_message) final;
58 bool IsJSExecutionForbidden() const final; 58 bool IsJSExecutionForbidden() const final;
59 String UserAgent() const final { return user_agent_; } 59 String UserAgent() const final { return user_agent_; }
60 SecurityContext& GetSecurityContext() final { return *this; } 60 SecurityContext& GetSecurityContext() final { return *this; }
61 EventQueue* GetEventQueue() const final { 61 EventQueue* GetEventQueue() const final {
62 NOTREACHED(); 62 NOTREACHED();
63 return nullptr; 63 return nullptr;
64 } // WorkletGlobalScopes don't have an event queue. 64 } // WorkletGlobalScopes don't have an event queue.
65 bool IsSecureContext( 65 bool IsSecureContext(String& error_message) const final;
66 String& error_message,
67 const SecureContextCheck = kStandardSecureContextCheck) const final;
68 66
69 using SecurityContext::GetSecurityOrigin; 67 using SecurityContext::GetSecurityOrigin;
70 using SecurityContext::GetContentSecurityPolicy; 68 using SecurityContext::GetContentSecurityPolicy;
71 69
72 DOMTimerCoordinator* Timers() final { 70 DOMTimerCoordinator* Timers() final {
73 NOTREACHED(); 71 NOTREACHED();
74 return nullptr; 72 return nullptr;
75 } // WorkletGlobalScopes don't have timers. 73 } // WorkletGlobalScopes don't have timers.
76 74
77 DECLARE_VIRTUAL_TRACE(); 75 DECLARE_VIRTUAL_TRACE();
(...skipping 20 matching lines...) Expand all
98 96
99 DEFINE_TYPE_CASTS(WorkletGlobalScope, 97 DEFINE_TYPE_CASTS(WorkletGlobalScope,
100 ExecutionContext, 98 ExecutionContext,
101 context, 99 context,
102 context->IsWorkletGlobalScope(), 100 context->IsWorkletGlobalScope(),
103 context.IsWorkletGlobalScope()); 101 context.IsWorkletGlobalScope());
104 102
105 } // namespace blink 103 } // namespace blink
106 104
107 #endif // WorkletGlobalScope_h 105 #endif // WorkletGlobalScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698