| Index: content/common/service_worker_types.h
|
| diff --git a/content/common/service_worker_types.h b/content/common/service_worker_types.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..19a763f44c776d93db32057e37c0b0e7959bd24e
|
| --- /dev/null
|
| +++ b/content/common/service_worker_types.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2013 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.
|
| +
|
| +#ifndef CONTENT_COMMON_SERVICE_WORKER_TYPES_H_
|
| +#define CONTENT_COMMON_SERVICE_WORKER_TYPES_H_
|
| +
|
| +#include <map>
|
| +#include <string>
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "content/common/content_export.h"
|
| +#include "url/gurl.h"
|
| +
|
| +// This file is to have common definitions that are to be shared by
|
| +// browser and child process.
|
| +
|
| +namespace content {
|
| +
|
| +// To dispatch fetch request from browser to child process.
|
| +// TODO(kinuko): This struct will definitely need more fields and
|
| +// we'll probably want to have response struct/class too.
|
| +struct CONTENT_EXPORT ServiceWorkerFetchRequest {
|
| + ServiceWorkerFetchRequest();
|
| + ServiceWorkerFetchRequest(
|
| + const GURL& url,
|
| + const std::string& method,
|
| + const std::map<std::string, std::string>& headers);
|
| + ~ServiceWorkerFetchRequest();
|
| +
|
| + GURL url;
|
| + std::string method;
|
| + std::map<std::string, std::string> headers;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_COMMON_SERVICE_WORKER_TYPES_H_
|
|
|