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

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

Issue 2516353002: Introduce url_list to the Response scheme of CacheStorage. (Closed)
Patch Set: implicit conversion WebURL <-> GURL and WebVector <- vector Created 4 years 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 589a6a40fd0a05fd8f13907a354d42cd7a23dd58..e981e015e3a423fea5b35cf90ad84474202dd929 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <string>
#include "base/strings/string_util.h"
@@ -170,11 +171,11 @@ struct CONTENT_EXPORT ServiceWorkerFetchRequest {
struct CONTENT_EXPORT ServiceWorkerResponse {
ServiceWorkerResponse();
ServiceWorkerResponse(
- const GURL& url,
+ std::unique_ptr<std::vector<GURL>> url_list,
int status_code,
const std::string& status_text,
blink::WebServiceWorkerResponseType response_type,
- const ServiceWorkerHeaderMap& headers,
+ std::unique_ptr<ServiceWorkerHeaderMap> headers,
const std::string& blob_uuid,
uint64_t blob_size,
const GURL& stream_url,
@@ -182,13 +183,13 @@ struct CONTENT_EXPORT ServiceWorkerResponse {
base::Time response_time,
bool is_in_cache_storage,
const std::string& cache_storage_cache_name,
- const ServiceWorkerHeaderList& cors_exposed_header_names);
+ std::unique_ptr<ServiceWorkerHeaderList> cors_exposed_header_names);
ServiceWorkerResponse(const ServiceWorkerResponse& other);
~ServiceWorkerResponse();
size_t EstimatedStructSize();
// Be sure to update EstimatedSize() when adding members.
- GURL url;
+ std::vector<GURL> url_list;
int status_code;
std::string status_text;
blink::WebServiceWorkerResponseType response_type;
« 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