OLD | NEW |
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 <memory> | 10 #include <memory> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/optional.h" | 19 #include "base/optional.h" |
20 #include "base/sequence_checker.h" | 20 #include "base/sequence_checker.h" |
21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
22 #include "content/common/content_export.h" | 22 #include "content/common/content_export.h" |
23 #include "content/common/origin_trials/trial_token_validator.h" | 23 #include "content/common/origin_trials/trial_token_validator.h" |
24 #include "content/common/service_worker/service_worker_status_code.h" | 24 #include "content/common/service_worker/service_worker_status_code.h" |
25 #include "content/common/service_worker/service_worker_types.h" | 25 #include "content/common/service_worker/service_worker_types.h" |
26 #include "url/gurl.h" | 26 #include "url/gurl.h" |
27 #include "url/origin.h" | 27 #include "url/origin.h" |
28 | 28 |
| 29 namespace tracked_objects { |
| 30 class Location; |
| 31 } |
| 32 |
29 namespace leveldb { | 33 namespace leveldb { |
30 class DB; | 34 class DB; |
31 class Env; | 35 class Env; |
32 class Status; | 36 class Status; |
33 class WriteBatch; | 37 class WriteBatch; |
34 } | 38 } |
35 | 39 |
36 namespace content { | 40 namespace content { |
37 | 41 |
38 // Class to persist serviceworker registration data in a database. | 42 // Class to persist serviceworker registration data in a database. |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, | 400 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, |
397 UserData_UninitializedDatabase); | 401 UserData_UninitializedDatabase); |
398 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, DestroyDatabase); | 402 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, DestroyDatabase); |
399 | 403 |
400 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDatabase); | 404 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDatabase); |
401 }; | 405 }; |
402 | 406 |
403 } // namespace content | 407 } // namespace content |
404 | 408 |
405 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ | 409 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ |
OLD | NEW |