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

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

Issue 546153002: Patch on top of https://codereview.chromium.org/433793002/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/CacheTest.cpp ('k') | Source/modules/serviceworkers/Request.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Request.h
diff --git a/Source/modules/serviceworkers/Request.h b/Source/modules/serviceworkers/Request.h
index eafb73f6a8e01d96c9d7c73b83d370a02c4ce5a4..7069524696545ebc5757d7aa27591de58a0a867a 100644
--- a/Source/modules/serviceworkers/Request.h
+++ b/Source/modules/serviceworkers/Request.h
@@ -28,11 +28,12 @@ class Request FINAL : public GarbageCollected<Request>, public ScriptWrappable {
public:
static Request* create(ExecutionContext*, const String&, ExceptionState&);
static Request* create(ExecutionContext*, const String&, const Dictionary&, ExceptionState&);
- static Request* create(ExecutionContext*, Request*, ExceptionState&);
- static Request* create(ExecutionContext*, Request*, const Dictionary&, ExceptionState&);
+ static Request* create(ExecutionContext*, const Request*, ExceptionState&);
+ static Request* create(ExecutionContext*, const Request*, const Dictionary&, ExceptionState&);
static Request* create(FetchRequestData*);
static Request* create(const WebServiceWorkerRequest&);
+ const FetchRequestData* request() const { return m_request; }
FetchRequestData* request() { return m_request; }
String method() const;
@@ -43,7 +44,7 @@ public:
String mode() const;
String credentials() const;
- void populateWebServiceWorkerRequest(WebServiceWorkerRequest&);
+ void populateWebServiceWorkerRequest(WebServiceWorkerRequest&) const;
void setBodyBlobHandle(PassRefPtr<BlobDataHandle>);
« no previous file with comments | « Source/modules/serviceworkers/CacheTest.cpp ('k') | Source/modules/serviceworkers/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698