1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/common/service_worker/service_worker_types.h"
9 ServiceWorkerFetchRequest::ServiceWorkerFetchRequest() : is_reload(false) {
12 ServiceWorkerFetchRequest::ServiceWorkerFetchRequest(
14 const std::string& method,
15 const std::map<std::string, std::string>& headers,
22 is_reload(is_reload) {
25 ServiceWorkerFetchRequest::~ServiceWorkerFetchRequest() {}
27 ServiceWorkerResponse::ServiceWorkerResponse() : status_code(0) {}
29 ServiceWorkerResponse::ServiceWorkerResponse(
32 const std::string& status_text,
33 const std::map<std::string, std::string>& headers,
34 const std::string& blob_uuid)
36 status_code(status_code),
37 status_text(status_text),
39 blob_uuid(blob_uuid) {
42 ServiceWorkerResponse::~ServiceWorkerResponse() {}
44 ServiceWorkerObjectInfo::ServiceWorkerObjectInfo()
45 : handle_id(kInvalidServiceWorkerHandleId),
46 state(blink::WebServiceWorkerStateUnknown) {}
48 } // namespace content