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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, | 401 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, |
398 UserData_UninitializedDatabase); | 402 UserData_UninitializedDatabase); |
399 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, DestroyDatabase); | 403 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, DestroyDatabase); |
400 | 404 |
401 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDatabase); | 405 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDatabase); |
402 }; | 406 }; |
403 | 407 |
404 } // namespace content | 408 } // namespace content |
405 | 409 |
406 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ | 410 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ |
OLD | NEW |