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

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

Issue 2668903003: Replace WTF::emptyString{16Bit}() with a static global (Closed)
Patch Set: Replace WTF::emptyString{16Bit}() with a static global Created 3 years, 10 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const KURL& url() const; 97 const KURL& url() const;
98 KURL completeURL(const String& url) const; 98 KURL completeURL(const String& url) const;
99 virtual void disableEval(const String& errorMessage) = 0; 99 virtual void disableEval(const String& errorMessage) = 0;
100 virtual LocalDOMWindow* executingWindow() const { return 0; } 100 virtual LocalDOMWindow* executingWindow() const { return 0; }
101 virtual String userAgent() const = 0; 101 virtual String userAgent() const = 0;
102 // Executes the task on context's thread asynchronously. 102 // Executes the task on context's thread asynchronously.
103 virtual void postTask( 103 virtual void postTask(
104 TaskType, 104 TaskType,
105 const WebTraceLocation&, 105 const WebTraceLocation&,
106 std::unique_ptr<ExecutionContextTask>, 106 std::unique_ptr<ExecutionContextTask>,
107 const String& taskNameForInstrumentation = emptyString()) = 0; 107 const String& taskNameForInstrumentation = emptyString) = 0;
108 108
109 // Gets the DOMTimerCoordinator which maintains the "active timer 109 // Gets the DOMTimerCoordinator which maintains the "active timer
110 // list" of tasks created by setTimeout and setInterval. The 110 // list" of tasks created by setTimeout and setInterval. The
111 // DOMTimerCoordinator is owned by the ExecutionContext and should 111 // DOMTimerCoordinator is owned by the ExecutionContext and should
112 // not be used after the ExecutionContext is destroyed. 112 // not be used after the ExecutionContext is destroyed.
113 virtual DOMTimerCoordinator* timers() = 0; 113 virtual DOMTimerCoordinator* timers() = 0;
114 114
115 virtual SecurityContext& securityContext() = 0; 115 virtual SecurityContext& securityContext() = 0;
116 KURL contextURL() const { return virtualURL(); } 116 KURL contextURL() const { return virtualURL(); }
117 KURL contextCompleteURL(const String& url) const { 117 KURL contextCompleteURL(const String& url) const {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to 214 // |allowWindowInteraction()| and |consumeWindowInteraction()| in order to
215 // increment and decrement the counter. 215 // increment and decrement the counter.
216 int m_windowInteractionTokens; 216 int m_windowInteractionTokens;
217 217
218 ReferrerPolicy m_referrerPolicy; 218 ReferrerPolicy m_referrerPolicy;
219 }; 219 };
220 220
221 } // namespace blink 221 } // namespace blink
222 222
223 #endif // ExecutionContext_h 223 #endif // ExecutionContext_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/IconURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698