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 7namespace content { 8 9ServiceWorkerFetchRequest::ServiceWorkerFetchRequest() : blob_size(0), 10 is_reload(false) {} 11 12ServiceWorkerFetchRequest::ServiceWorkerFetchRequest( 13 const GURL& url, 14 const std::string& method, 15 const ServiceWorkerHeaderMap& headers, 16 const GURL& referrer, 17 bool is_reload) 18 : url(url), 19 method(method), 20 headers(headers), 21 blob_size(0), 22 referrer(referrer), 23 is_reload(is_reload) {} 24 25ServiceWorkerFetchRequest::~ServiceWorkerFetchRequest() {} 26 27ServiceWorkerResponse::ServiceWorkerResponse() : status_code(0) {} 28 29ServiceWorkerResponse::ServiceWorkerResponse( 30 const GURL& url, 31 int status_code, 32 const std::string& status_text, 33 const ServiceWorkerHeaderMap& headers, 34 const std::string& blob_uuid) 35 : url(url), 36 status_code(status_code), 37 status_text(status_text), 38 headers(headers), 39 blob_uuid(blob_uuid) {} 40 41ServiceWorkerResponse::~ServiceWorkerResponse() {} 42 43ServiceWorkerCacheQueryParams::ServiceWorkerCacheQueryParams() 44 : ignore_search(false), 45 ignore_method(false), 46 ignore_vary(false), 47 prefix_match(false) {} 48 49ServiceWorkerBatchOperation::ServiceWorkerBatchOperation() {} 50 51ServiceWorkerObjectInfo::ServiceWorkerObjectInfo() 52 : handle_id(kInvalidServiceWorkerHandleId), 53 state(blink::WebServiceWorkerStateUnknown) {} 54 55ServiceWorkerRegistrationObjectInfo::ServiceWorkerRegistrationObjectInfo() 56 : handle_id(kInvalidServiceWorkerRegistrationHandleId) {} 57 58} // namespace content 59