summaryrefslogtreecommitdiffstats
path: root/chromium/content/common/service_worker/service_worker_types.cc
blob: ce5cd7aee07f02aa7b17aba168ad933a67f12678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/common/service_worker/service_worker_types.h"

namespace content {

ServiceWorkerFetchRequest::ServiceWorkerFetchRequest() {}

ServiceWorkerFetchRequest::ServiceWorkerFetchRequest(
    const GURL& url,
    const std::string& method,
    const std::map<std::string, std::string>& headers)
    : url(url),
      method(method),
      headers(headers) {
}

ServiceWorkerFetchRequest::~ServiceWorkerFetchRequest() {}

ServiceWorkerResponse::ServiceWorkerResponse() : status_code(0) {}

ServiceWorkerResponse::ServiceWorkerResponse(
    int status_code,
    const std::string& status_text,
    const std::map<std::string, std::string>& headers,
    const std::string& blob_uuid)
    : status_code(status_code),
      status_text(status_text),
      headers(headers),
      blob_uuid(blob_uuid) {
}

ServiceWorkerResponse::~ServiceWorkerResponse() {}

ServiceWorkerObjectInfo::ServiceWorkerObjectInfo()
    : handle_id(kInvalidServiceWorkerHandleId),
      state(blink::WebServiceWorkerStateUnknown) {}

}  // namespace content