OLD | NEW |
---|---|
(Empty) | |
1 // 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
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_COMMON_SERVICE_WORKER_INTERFACES_H_ | |
6 #define CONTENT_COMMON_SERVICE_WORKER_INTERFACES_H_ | |
7 | |
8 #include <map> | |
9 #include <string> | |
10 | |
11 #include "base/basictypes.h" | |
12 #include "content/common/content_export.h" | |
13 #include "url/gurl.h" | |
14 | |
15 namespace content { | |
16 | |
17 struct CONTENT_EXPORT ServiceWorkerFetchRequest { | |
18 GURL url; | |
19 std::string method; | |
20 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
| |
21 std::map<std::string, std::string> headers; | |
22 bool is_main_resource_load; | |
23 | |
24 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
| |
25 ~ServiceWorkerFetchRequest(); | |
26 }; | |
27 | |
28 } // namespace content | |
29 | |
30 #endif // CONTENT_COMMON_SERVICE_WORKER_INTERFACES_H_ | |
OLD | NEW |