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

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

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. Created 4 years, 2 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 virtual bool isContextThread() const { return true; } 88 virtual bool isContextThread() const { return true; }
89 89
90 SecurityOrigin* getSecurityOrigin(); 90 SecurityOrigin* getSecurityOrigin();
91 ContentSecurityPolicy* contentSecurityPolicy(); 91 ContentSecurityPolicy* contentSecurityPolicy();
92 const KURL& url() const; 92 const KURL& url() const;
93 KURL completeURL(const String& url) const; 93 KURL completeURL(const String& url) const;
94 virtual void disableEval(const String& errorMessage) = 0; 94 virtual void disableEval(const String& errorMessage) = 0;
95 virtual LocalDOMWindow* executingWindow() const { return 0; } 95 virtual LocalDOMWindow* executingWindow() const { return 0; }
96 virtual String userAgent() const = 0; 96 virtual String userAgent() const = 0;
97 // Executes the task on context's thread asynchronously.
97 virtual void postTask( 98 virtual void postTask(
98 const WebTraceLocation&, 99 const WebTraceLocation&,
99 std::unique_ptr<ExecutionContextTask>, 100 std::unique_ptr<ExecutionContextTask>,
100 const String& taskNameForInstrumentation = 101 const String& taskNameForInstrumentation = emptyString()) = 0;
101 emptyString()) = 0; // Executes the task on context's thread asynchro nously.
102 102
103 // Gets the DOMTimerCoordinator which maintains the "active timer 103 // Gets the DOMTimerCoordinator which maintains the "active timer
104 // list" of tasks created by setTimeout and setInterval. The 104 // list" of tasks created by setTimeout and setInterval. The
105 // DOMTimerCoordinator is owned by the ExecutionContext and should 105 // DOMTimerCoordinator is owned by the ExecutionContext and should
106 // not be used after the ExecutionContext is destroyed. 106 // not be used after the ExecutionContext is destroyed.
107 virtual DOMTimerCoordinator* timers() = 0; 107 virtual DOMTimerCoordinator* timers() = 0;
108 108
109 virtual SecurityContext& securityContext() = 0; 109 virtual SecurityContext& securityContext() = 0;
110 KURL contextURL() const { return virtualURL(); } 110 KURL contextURL() const { return virtualURL(); }
111 KURL contextCompleteURL(const String& url) const { 111 KURL contextCompleteURL(const String& url) const {
(...skipping 22 matching lines...) Expand all
134 virtual void tasksWereSuspended() {} 134 virtual void tasksWereSuspended() {}
135 virtual void tasksWereResumed() {} 135 virtual void tasksWereResumed() {}
136 136
137 bool activeDOMObjectsAreSuspended() const { 137 bool activeDOMObjectsAreSuspended() const {
138 return m_activeDOMObjectsAreSuspended; 138 return m_activeDOMObjectsAreSuspended;
139 } 139 }
140 bool activeDOMObjectsAreStopped() const { 140 bool activeDOMObjectsAreStopped() const {
141 return m_activeDOMObjectsAreStopped; 141 return m_activeDOMObjectsAreStopped;
142 } 142 }
143 143
144 // Called after the construction of an ActiveDOMObject to synchronize suspend state. 144 // Called after the construction of an ActiveDOMObject to synchronize suspend
145 // state.
145 void suspendActiveDOMObjectIfNeeded(ActiveDOMObject*); 146 void suspendActiveDOMObjectIfNeeded(ActiveDOMObject*);
146 147
147 // Gets the next id in a circular sequence from 1 to 2^31-1. 148 // Gets the next id in a circular sequence from 1 to 2^31-1.
148 int circularSequentialID(); 149 int circularSequentialID();
149 150
150 virtual EventTarget* errorEventTarget() = 0; 151 virtual EventTarget* errorEventTarget() = 0;
151 virtual EventQueue* getEventQueue() const = 0; 152 virtual EventQueue* getEventQueue() const = 0;
152 153
153 // Methods related to window interaction. It should be used to manage window 154 // Methods related to window interaction. It should be used to manage window
154 // focusing and window creation permission for an ExecutionContext. 155 // focusing and window creation permission for an ExecutionContext.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 208
208 Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks; 209 Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks;
209 bool m_isRunSuspendableTasksScheduled; 210 bool m_isRunSuspendableTasksScheduled;
210 211
211 ReferrerPolicy m_referrerPolicy; 212 ReferrerPolicy m_referrerPolicy;
212 }; 213 };
213 214
214 } // namespace blink 215 } // namespace blink
215 216
216 #endif // ExecutionContext_h 217 #endif // ExecutionContext_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ExceptionCode.h ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698