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

Unified Diff: Source/modules/serviceworkers/Headers.cpp

Issue 478233003: Make some ScriptValue references const (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/serviceworkers/Headers.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Headers.cpp
diff --git a/Source/modules/serviceworkers/Headers.cpp b/Source/modules/serviceworkers/Headers.cpp
index 0493a4cd859f4b12aae4263e09e138d5d5cfd2ba..5fca753d7de33e6c1d1c21c482db0d43d1fbf1b2 100644
--- a/Source/modules/serviceworkers/Headers.cpp
+++ b/Source/modules/serviceworkers/Headers.cpp
@@ -210,7 +210,7 @@ void Headers::set(const String& name, const String& value, ExceptionState& excep
m_headerList->set(name, value);
}
-void Headers::forEach(PassOwnPtr<HeadersForEachCallback> callback, ScriptValue& thisArg)
+void Headers::forEach(PassOwnPtr<HeadersForEachCallback> callback, const ScriptValue& thisArg)
{
forEachInternal(callback, &thisArg);
}
@@ -309,7 +309,7 @@ Headers::Headers(FetchHeaderList* headerList)
ScriptWrappable::init(this);
}
-void Headers::forEachInternal(PassOwnPtr<HeadersForEachCallback> callback, ScriptValue* thisArg)
+void Headers::forEachInternal(PassOwnPtr<HeadersForEachCallback> callback, const ScriptValue* thisArg)
{
TrackExceptionState exceptionState;
for (size_t i = 0; i < m_headerList->size(); ++i) {
« no previous file with comments | « Source/modules/serviceworkers/Headers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698