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

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: remove empty line 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..10444de002ec58e0ee9ff1136c6aeb1343c6c309 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 status_code,
+ const std::string& status_text,
+ const std::string& method,
+ const std::map<std::string, std::string>& headers);
+ ~ServiceWorkerFetchResponse();
+
+ int status_code;
+ std::string status_text;
+ std::string method;
+ std::map<std::string, std::string> headers;
+};
+
} // namespace content
#endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
« 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