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

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

Issue 164753006: Start of Chrome-side plumbing for ServiceWorker fetch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 abb13b9aab5ffb6584aea3c94541472b8fabb669..7890f27489a6874dd29228a9c9ad0247d1c1ab2a 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -38,6 +38,22 @@ struct CONTENT_EXPORT ServiceWorkerFetchRequest {
std::map<std::string, std::string> headers;
};
+// The response sent from the child process to the browser.
+struct CONTENT_EXPORT ServiceWorkerFetchResponse {
+ ServiceWorkerFetchResponse();
+ ServiceWorkerFetchResponse(
+ int statusCode,
+ const std::string& statusText,
+ const std::string& method,
+ const std::map<std::string, std::string>& headers);
+ ~ServiceWorkerFetchResponse();
+
+ int statusCode;
+ std::string statusText;
kinuko 2014/02/14 08:56:24 nit: we're in chrome, please use snake_case rather
falken 2014/02/19 05:32:19 Done.
+ std::string method;
+ std::map<std::string, std::string> headers;
+};
+
} // namespace content
#endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698