Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / content / common / service_worker / service_worker_types.cc
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::string& method,
28     const std::map<std::string, std::string>& headers)
29     : status_code(status_code),
30       status_text(status_text),
31       method(method),
32       headers(headers) {}
33
34 ServiceWorkerResponse::~ServiceWorkerResponse() {}
35
36 ServiceWorkerObjectInfo::ServiceWorkerObjectInfo()
37     : handle_id(kInvalidServiceWorkerHandleId),
38       state(blink::WebServiceWorkerStateUnknown) {}
39
40 }  // namespace content