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. 4 5 #include "content/common/service_worker/service_worker_types.h" 6 7 namespace content { 8 9 ServiceWorkerFetchRequest::ServiceWorkerFetchRequest() {} 10 11 ServiceWorkerFetchRequest::ServiceWorkerFetchRequest( 12 const GURL& url, 13 const std::string& method, 14 const std::map<std::string, std::string>& headers) 15 : url(url), 16 method(method), 17 headers(headers) { 18 } 19 20 ServiceWorkerFetchRequest::~ServiceWorkerFetchRequest() {} 21 22 ServiceWorkerResponse::ServiceWorkerResponse() : status_code(0) {} 23 24 ServiceWorkerResponse::ServiceWorkerResponse( 25 int status_code, 26 const std::string& status_text, 27 const std::map<std::string, std::string>& headers, 28 const std::string& blob_uuid) 29 : status_code(status_code), 30 status_text(status_text), 31 headers(headers), 32 blob_uuid(blob_uuid) { 33 } 34 35 ServiceWorkerResponse::~ServiceWorkerResponse() {} 36 37 ServiceWorkerObjectInfo::ServiceWorkerObjectInfo() 38 : handle_id(kInvalidServiceWorkerHandleId), 39 state(blink::WebServiceWorkerStateUnknown) {} 40 41 } // namespace content 42