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

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

Issue 1656933003: Add origins argument to registerForeignFetchScopes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DATABASE_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Versions are first stored once they successfully install and become 62 // Versions are first stored once they successfully install and become
63 // the waiting version. Then transition to the active version. The stored 63 // the waiting version. Then transition to the active version. The stored
64 // version may be in the ACTIVATED state or in the INSTALLED state. 64 // version may be in the ACTIVATED state or in the INSTALLED state.
65 GURL script; 65 GURL script;
66 int64_t version_id; 66 int64_t version_id;
67 bool is_active; 67 bool is_active;
68 bool has_fetch_handler; 68 bool has_fetch_handler;
69 base::Time last_update_check; 69 base::Time last_update_check;
70 std::vector<GURL> foreign_fetch_scopes; 70 std::vector<GURL> foreign_fetch_scopes;
71 std::vector<GURL> foreign_fetch_origins;
71 72
72 // Not populated until ServiceWorkerStorage::StoreRegistration is called. 73 // Not populated until ServiceWorkerStorage::StoreRegistration is called.
73 int64_t resources_total_size_bytes; 74 int64_t resources_total_size_bytes;
74 75
75 RegistrationData(); 76 RegistrationData();
76 ~RegistrationData(); 77 ~RegistrationData();
77 }; 78 };
78 79
79 struct ResourceRecord { 80 struct ResourceRecord {
80 int64_t resource_id; 81 int64_t resource_id;
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, 377 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest,
377 UserData_UninitializedDatabase); 378 UserData_UninitializedDatabase);
378 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, DestroyDatabase); 379 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, DestroyDatabase);
379 380
380 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDatabase); 381 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDatabase);
381 }; 382 };
382 383
383 } // namespace content 384 } // namespace content
384 385
385 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ 386 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698