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

Side by Side Diff: third_party/WebKit/Source/core/dom/ExecutionContext.h

Issue 2242743002: Make custom elements work in HTML imports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses tkent's comments. Created 4 years, 3 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. 3 * Copyright (C) 2012 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual bool isPaintWorkletGlobalScope() const { return false; } 81 virtual bool isPaintWorkletGlobalScope() const { return false; }
82 virtual bool isJSExecutionForbidden() const { return false; } 82 virtual bool isJSExecutionForbidden() const { return false; }
83 83
84 virtual bool isContextThread() const { return true; } 84 virtual bool isContextThread() const { return true; }
85 85
86 SecurityOrigin* getSecurityOrigin(); 86 SecurityOrigin* getSecurityOrigin();
87 ContentSecurityPolicy* contentSecurityPolicy(); 87 ContentSecurityPolicy* contentSecurityPolicy();
88 const KURL& url() const; 88 const KURL& url() const;
89 KURL completeURL(const String& url) const; 89 KURL completeURL(const String& url) const;
90 virtual void disableEval(const String& errorMessage) = 0; 90 virtual void disableEval(const String& errorMessage) = 0;
91 virtual LocalDOMWindow* executingWindow() { return 0; } 91 virtual LocalDOMWindow* executingWindow() const { return 0; }
92 virtual String userAgent() const = 0; 92 virtual String userAgent() const = 0;
93 virtual void postTask(const WebTraceLocation&, std::unique_ptr<ExecutionCont extTask>, const String& taskNameForInstrumentation = emptyString()) = 0; // Exec utes the task on context's thread asynchronously. 93 virtual void postTask(const WebTraceLocation&, std::unique_ptr<ExecutionCont extTask>, const String& taskNameForInstrumentation = emptyString()) = 0; // Exec utes the task on context's thread asynchronously.
94 94
95 // Gets the DOMTimerCoordinator which maintains the "active timer 95 // Gets the DOMTimerCoordinator which maintains the "active timer
96 // list" of tasks created by setTimeout and setInterval. The 96 // list" of tasks created by setTimeout and setInterval. The
97 // DOMTimerCoordinator is owned by the ExecutionContext and should 97 // DOMTimerCoordinator is owned by the ExecutionContext and should
98 // not be used after the ExecutionContext is destroyed. 98 // not be used after the ExecutionContext is destroyed.
99 virtual DOMTimerCoordinator* timers() = 0; 99 virtual DOMTimerCoordinator* timers() = 0;
100 100
101 virtual SecurityContext& securityContext() = 0; 101 virtual SecurityContext& securityContext() = 0;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks; 186 Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks;
187 bool m_isRunSuspendableTasksScheduled; 187 bool m_isRunSuspendableTasksScheduled;
188 188
189 ReferrerPolicy m_referrerPolicy; 189 ReferrerPolicy m_referrerPolicy;
190 }; 190 };
191 191
192 } // namespace blink 192 } // namespace blink
193 193
194 #endif // ExecutionContext_h 194 #endif // ExecutionContext_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/custom/CustomElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698