| 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 | |
| 33 namespace leveldb { | 29 namespace leveldb { |
| 34 class DB; | 30 class DB; |
| 35 class Env; | 31 class Env; |
| 36 class Status; | 32 class Status; |
| 37 class WriteBatch; | 33 class WriteBatch; |
| 38 } | 34 } |
| 39 | 35 |
| 40 namespace content { | 36 namespace content { |
| 41 | 37 |
| 42 // Class to persist serviceworker registration data in a database. | 38 // Class to persist serviceworker registration data in a database. |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, | 397 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, |
| 402 UserData_UninitializedDatabase); | 398 UserData_UninitializedDatabase); |
| 403 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, DestroyDatabase); | 399 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerDatabaseTest, DestroyDatabase); |
| 404 | 400 |
| 405 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDatabase); | 401 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDatabase); |
| 406 }; | 402 }; |
| 407 | 403 |
| 408 } // namespace content | 404 } // namespace content |
| 409 | 405 |
| 410 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ | 406 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DATABASE_H_ |
| OLD | NEW |