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

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

Issue 2525723002: Limit Link header based SW installations for fetches made by SW. (Closed)
Patch Set: Created 4 years, 1 month 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 | « content/browser/service_worker/link_header_support_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SERVICE_WORKER_PROVIDER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // An optimized implementation of [[Match Service Worker Registration]] 255 // An optimized implementation of [[Match Service Worker Registration]]
256 // for current document. 256 // for current document.
257 ServiceWorkerRegistration* MatchRegistration() const; 257 ServiceWorkerRegistration* MatchRegistration() const;
258 258
259 // Called when our controller has been terminated and doomed due to an 259 // Called when our controller has been terminated and doomed due to an
260 // exceptional condition like it could no longer be read from the script 260 // exceptional condition like it could no longer be read from the script
261 // cache. 261 // cache.
262 void NotifyControllerLost(); 262 void NotifyControllerLost();
263 263
264 private: 264 private:
265 friend class LinkHeaderServiceWorkerTest;
265 friend class ServiceWorkerProviderHostTestP; 266 friend class ServiceWorkerProviderHostTestP;
266 friend class ServiceWorkerWriteToCacheJobTest; 267 friend class ServiceWorkerWriteToCacheJobTest;
267 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, Update_SameScript); 268 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, Update_SameScript);
268 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, 269 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest,
269 Update_SameSizeScript); 270 Update_SameSizeScript);
270 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, 271 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest,
271 Update_TruncatedScript); 272 Update_TruncatedScript);
272 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, 273 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest,
273 Update_ElongatedScript); 274 Update_ElongatedScript);
274 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest, 275 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerWriteToCacheJobTest,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 bool allow_association_; 374 bool allow_association_;
374 375
375 std::vector<base::Closure> queued_events_; 376 std::vector<base::Closure> queued_events_;
376 377
377 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); 378 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost);
378 }; 379 };
379 380
380 } // namespace content 381 } // namespace content
381 382
382 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ 383 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/link_header_support_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698