Chromium Code Reviews| 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..c0d4b0e98f64164636698808ce0278005647f720 |
| --- /dev/null |
| +++ b/content/common/service_worker_types.h |
| @@ -0,0 +1,34 @@ |
| +// 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 { |
| + GURL url; |
| + std::string method; |
| + std::map<std::string, std::string> headers; |
|
jochen (gone - plz use gerrit)
2013/12/20 09:15:58
should this be net::HttpRequestHeaders?
kinuko
2013/12/20 10:12:42
This struct's going to be sent over IPC, while Htt
|
| + |
| + ServiceWorkerFetchRequest(); |
|
jochen (gone - plz use gerrit)
2013/12/20 09:15:58
can you move the ctor/dtor before the members.
ca
kinuko
2013/12/20 10:12:42
Done.
|
| + ~ServiceWorkerFetchRequest(); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_SERVICE_WORKER_TYPES_H_ |