Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1115)

Side by Side Diff: content/common/net/url_request_service_worker_data.h

Issue 2368923003: Support the Clear-Site-Data header on resource requests (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_NET_URL_REQUEST_SERVICE_WORKER_DATA_H_ 5 #ifndef CONTENT_COMMON_NET_URL_REQUEST_SERVICE_WORKER_DATA_H_
6 #define CONTENT_COMMON_NET_URL_REQUEST_SERVICE_WORKER_DATA_H_ 6 #define CONTENT_COMMON_NET_URL_REQUEST_SERVICE_WORKER_DATA_H_
7 7
8 #include "base/supports_user_data.h" 8 #include "base/supports_user_data.h"
9 #include "content/common/content_export.h"
9 10
10 namespace content { 11 namespace content {
11 12
12 // Used to annotate all URLRequests for which the request originated in the 13 // Used to annotate all URLRequests for which the request originated in the
13 // Service Worker and for initial Service Worker script loads. 14 // Service Worker and for initial Service Worker script loads.
14 // Summarized this includes requests due to: 15 // Summarized this includes requests due to:
15 // - fetching Service Worker script itself for installation, 16 // - fetching Service Worker script itself for installation,
16 // - importing other scripts from within a Service Worker script, 17 // - importing other scripts from within a Service Worker script,
17 // - calling fetch() from within a Service Worker script. 18 // - calling fetch() from within a Service Worker script.
18 class URLRequestServiceWorkerData : public base::SupportsUserData::Data { 19 class CONTENT_EXPORT URLRequestServiceWorkerData
20 : public base::SupportsUserData::Data {
19 public: 21 public:
20 URLRequestServiceWorkerData(); 22 URLRequestServiceWorkerData();
21 ~URLRequestServiceWorkerData() override; 23 ~URLRequestServiceWorkerData() override;
22 24
23 static const void* kUserDataKey; 25 static const void* kUserDataKey;
24 }; 26 };
25 27
26 } // namespace content 28 } // namespace content
27 29
28 #endif // CONTENT_COMMON_NET_URL_REQUEST_SERVICE_WORKER_DATA_H_ 30 #endif // CONTENT_COMMON_NET_URL_REQUEST_SERVICE_WORKER_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698