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

Unified Diff: content/common/service_worker/service_worker_types.h

Issue 299003002: ServiceWorker: support Response.{status,statusText,headers} [chromium] (1/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 6 years, 7 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: content/common/service_worker/service_worker_types.h
diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h
index 319e2722805e280f845cda30c55118125aea71a0..73bccbc5a88a37f73b820e6b5ec982f31cdfdbd1 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -59,15 +59,18 @@ enum ServiceWorkerFetchEventResult {
// Represents a response to a fetch.
struct CONTENT_EXPORT ServiceWorkerResponse {
ServiceWorkerResponse();
+ // TODO(kinuko): Deprecate this once blink side patch is rolled.
ServiceWorkerResponse(int status_code,
const std::string& status_text,
const std::string& method,
const std::map<std::string, std::string>& headers);
+ ServiceWorkerResponse(int status_code,
+ const std::string& status_text,
+ const std::map<std::string, std::string>& headers);
~ServiceWorkerResponse();
int status_code;
std::string status_text;
- std::string method;
std::map<std::string, std::string> headers;
};
« no previous file with comments | « content/common/service_worker/service_worker_messages.h ('k') | content/common/service_worker/service_worker_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698