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

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

Issue 2532013002: [SUSPENDED] Scheduler: Add deprecation comments on ExecutionContext::postTask() (Closed)
Patch Set: Created 4 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 /* 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 virtual bool isContextThread() const { return true; } 86 virtual bool isContextThread() const { return true; }
87 87
88 SecurityOrigin* getSecurityOrigin(); 88 SecurityOrigin* getSecurityOrigin();
89 ContentSecurityPolicy* contentSecurityPolicy(); 89 ContentSecurityPolicy* contentSecurityPolicy();
90 const KURL& url() const; 90 const KURL& url() const;
91 KURL completeURL(const String& url) const; 91 KURL completeURL(const String& url) const;
92 virtual void disableEval(const String& errorMessage) = 0; 92 virtual void disableEval(const String& errorMessage) = 0;
93 virtual LocalDOMWindow* executingWindow() const { return 0; } 93 virtual LocalDOMWindow* executingWindow() const { return 0; }
94 virtual String userAgent() const = 0; 94 virtual String userAgent() const = 0;
95
96 // DEPRECATED: Please use TaskRunnerHelper or ParentFrameTaskRunners.
97 // (https://crbug.com/624696)
95 // Executes the task on context's thread asynchronously. 98 // Executes the task on context's thread asynchronously.
96 virtual void postTask( 99 virtual void postTask(
97 const WebTraceLocation&, 100 const WebTraceLocation&,
98 std::unique_ptr<ExecutionContextTask>, 101 std::unique_ptr<ExecutionContextTask>,
99 const String& taskNameForInstrumentation = emptyString()) = 0; 102 const String& taskNameForInstrumentation = emptyString()) = 0;
100 103
101 // Gets the DOMTimerCoordinator which maintains the "active timer 104 // Gets the DOMTimerCoordinator which maintains the "active timer
102 // list" of tasks created by setTimeout and setInterval. The 105 // list" of tasks created by setTimeout and setInterval. The
103 // DOMTimerCoordinator is owned by the ExecutionContext and should 106 // DOMTimerCoordinator is owned by the ExecutionContext and should
104 // not be used after the ExecutionContext is destroyed. 107 // not be used after the ExecutionContext is destroyed.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to 204 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to
202 // increment and decrement the counter. 205 // increment and decrement the counter.
203 int m_windowInteractionTokens; 206 int m_windowInteractionTokens;
204 207
205 ReferrerPolicy m_referrerPolicy; 208 ReferrerPolicy m_referrerPolicy;
206 }; 209 };
207 210
208 } // namespace blink 211 } // namespace blink
209 212
210 #endif // ExecutionContext_h 213 #endif // ExecutionContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698