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

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

Issue 329853012: [ServiceWorker] Make Request class better conformance with the spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Copy headers in FetchRequestData::createRestrictedCopy(). Created 6 years, 6 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
Index: Source/modules/serviceworkers/Headers.h
diff --git a/Source/modules/serviceworkers/Headers.h b/Source/modules/serviceworkers/Headers.h
index 38f82701dc665f5d1c8299571ea4688095fdf409..140380f1f4dca4545069e03994e693e2d75df8f9 100644
--- a/Source/modules/serviceworkers/Headers.h
+++ b/Source/modules/serviceworkers/Headers.h
@@ -47,15 +47,16 @@ public:
void setGuard(Guard guard) { m_guard = guard; }
Guard guard() const { return m_guard; }
+ // The header list in |m_headerList| must be cleared before calling these methods.
+ void fillWith(const Headers*, ExceptionState&);
+ void fillWith(const Dictionary&, ExceptionState&);
+
private:
Headers();
// Shares the FetchHeaderList. Called when creating a Request or Response.
explicit Headers(FetchHeaderList*);
void forEachInternal(PassOwnPtr<HeadersForEachCallback>, ScriptValue*);
- void fillWith(const Headers*, ExceptionState&);
- void fillWith(const Dictionary&, ExceptionState&);
-
RefPtr<FetchHeaderList> m_headerList;
Guard m_guard;
};

Powered by Google App Engine
This is Rietveld 408576698