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

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

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/core/css/FontFaceSet.cpp ('k') | Source/modules/serviceworkers/Headers.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Headers.h
diff --git a/Source/modules/serviceworkers/Headers.h b/Source/modules/serviceworkers/Headers.h
index 98732fa7aadc99bd05c74a7c1cd1276e4d041360..30d7bcc721accef25a92eccb8932eb92e7704f16 100644
--- a/Source/modules/serviceworkers/Headers.h
+++ b/Source/modules/serviceworkers/Headers.h
@@ -42,7 +42,7 @@ public:
bool has(const String& key, ExceptionState&);
void set(const String& key, const String& value, ExceptionState&);
unsigned long size() const;
- void forEach(PassOwnPtr<HeadersForEachCallback>, ScriptValue&);
+ void forEach(PassOwnPtr<HeadersForEachCallback>, const ScriptValue&);
void forEach(PassOwnPtr<HeadersForEachCallback>);
void setGuard(Guard guard) { m_guard = guard; }
@@ -58,7 +58,7 @@ private:
Headers();
// Shares the FetchHeaderList. Called when creating a Request or Response.
explicit Headers(FetchHeaderList*);
- void forEachInternal(PassOwnPtr<HeadersForEachCallback>, ScriptValue*);
+ void forEachInternal(PassOwnPtr<HeadersForEachCallback>, const ScriptValue*);
RefPtrWillBeMember<FetchHeaderList> m_headerList;
Guard m_guard;
« no previous file with comments | « Source/core/css/FontFaceSet.cpp ('k') | Source/modules/serviceworkers/Headers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698