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

Side by Side Diff: content/browser/service_worker/foreign_fetch_request_handler.h

Issue 2255713003: Effectively disable foreign fetch when third party cookies are disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: null out resource_context_ Created 4 years, 4 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
« no previous file with comments | « no previous file | content/browser/service_worker/foreign_fetch_request_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BROWSER_SERVICE_WORKER_FOREIGN_FETCH_REQUEST_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_FOREIGN_FETCH_REQUEST_HANDLER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_FOREIGN_FETCH_REQUEST_HANDLER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_FOREIGN_FETCH_REQUEST_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 scoped_refptr<ServiceWorkerContextWrapper> context_; 116 scoped_refptr<ServiceWorkerContextWrapper> context_;
117 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_; 117 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_;
118 ResourceType resource_type_; 118 ResourceType resource_type_;
119 FetchRequestMode request_mode_; 119 FetchRequestMode request_mode_;
120 FetchCredentialsMode credentials_mode_; 120 FetchCredentialsMode credentials_mode_;
121 FetchRedirectMode redirect_mode_; 121 FetchRedirectMode redirect_mode_;
122 RequestContextType request_context_type_; 122 RequestContextType request_context_type_;
123 RequestContextFrameType frame_type_; 123 RequestContextFrameType frame_type_;
124 scoped_refptr<ResourceRequestBodyImpl> body_; 124 scoped_refptr<ResourceRequestBodyImpl> body_;
125 ResourceContext* resource_context_;
125 126
126 base::WeakPtr<ServiceWorkerURLRequestJob> job_; 127 base::WeakPtr<ServiceWorkerURLRequestJob> job_;
127 scoped_refptr<ServiceWorkerVersion> target_worker_; 128 scoped_refptr<ServiceWorkerVersion> target_worker_;
128 129
129 // True if the next time this request is started, the response should be 130 // True if the next time this request is started, the response should be
130 // delivered from the network, bypassing the ServiceWorker. 131 // delivered from the network, bypassing the ServiceWorker.
131 bool use_network_ = false; 132 bool use_network_ = false;
132 133
133 base::WeakPtrFactory<ForeignFetchRequestHandler> weak_factory_; 134 base::WeakPtrFactory<ForeignFetchRequestHandler> weak_factory_;
134 135
135 DISALLOW_COPY_AND_ASSIGN(ForeignFetchRequestHandler); 136 DISALLOW_COPY_AND_ASSIGN(ForeignFetchRequestHandler);
136 }; 137 };
137 138
138 } // namespace content 139 } // namespace content
139 140
140 #endif // CONTENT_BROWSER_SERVICE_WORKER_FOREIGN_FETCH_REQUEST_HANDLER_H_ 141 #endif // CONTENT_BROWSER_SERVICE_WORKER_FOREIGN_FETCH_REQUEST_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/foreign_fetch_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698