Chromium Code Reviews| Index: content/common/service_worker_interfaces.h |
| diff --git a/content/common/service_worker_interfaces.h b/content/common/service_worker_interfaces.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d451af5654ff52099b1b9b3a54a8f9d314202a82 |
| --- /dev/null |
| +++ b/content/common/service_worker_interfaces.h |
| @@ -0,0 +1,30 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
|
alecflett
2013/12/19 00:59:11
Quite minor: the name of this file doesn't feel ri
kinuko
2013/12/20 08:01:09
I was thinking about having 'common' types / defin
|
| +// 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_INTERFACES_H_ |
| +#define CONTENT_COMMON_SERVICE_WORKER_INTERFACES_H_ |
| + |
| +#include <map> |
| +#include <string> |
| + |
| +#include "base/basictypes.h" |
| +#include "content/common/content_export.h" |
| +#include "url/gurl.h" |
| + |
| +namespace content { |
| + |
| +struct CONTENT_EXPORT ServiceWorkerFetchRequest { |
| + GURL url; |
| + std::string method; |
| + std::string referrer; |
|
alecflett
2013/12/19 00:59:11
What is referrer? Does it overlap with the "Referr
kinuko
2013/12/20 08:01:09
Some of them are taken from old prototype code, bu
|
| + std::map<std::string, std::string> headers; |
| + bool is_main_resource_load; |
| + |
| + ServiceWorkerFetchRequest(); |
|
alecflett
2013/12/19 00:59:11
If you're going to put constructors on this, is it
kinuko
2013/12/20 08:01:09
Yup. Will do when this struct/class's become more
|
| + ~ServiceWorkerFetchRequest(); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_SERVICE_WORKER_INTERFACES_H_ |