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_WRITE_TO_CACHE_JOB_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_WRITE_TO_CACHE_JOB_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_WRITE_TO_CACHE_JOB_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_WRITE_TO_CACHE_JOB_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 int64_t incumbent_resource_id); | 56 int64_t incumbent_resource_id); |
57 | 57 |
58 // The error code used when update fails because the new | 58 // The error code used when update fails because the new |
59 // script is byte-by-byte identical to the incumbent script. | 59 // script is byte-by-byte identical to the incumbent script. |
60 const static net::Error kIdenticalScriptError; | 60 const static net::Error kIdenticalScriptError; |
61 | 61 |
62 private: | 62 private: |
63 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, | 63 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, |
64 UpdateBefore24Hours); | 64 UpdateBefore24Hours); |
65 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, | 65 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, |
66 UpdateAfter24Hours); | 66 UpdateBefore24HoursUsingCache); |
| 67 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, |
| 68 UpdateAfter24HoursUsingCache); |
67 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, | 69 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, |
68 UpdateForceBypassCache); | 70 UpdateForceBypassCache); |
69 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, | 71 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, |
70 ServiceWorkerDataRequestAnnotation); | 72 ServiceWorkerDataRequestAnnotation); |
71 | 73 |
72 ~ServiceWorkerWriteToCacheJob() override; | 74 ~ServiceWorkerWriteToCacheJob() override; |
73 | 75 |
74 // net::URLRequestJob overrides | 76 // net::URLRequestJob overrides |
75 void Start() override; | 77 void Start() override; |
76 void StartAsync(); | 78 void StartAsync(); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 bool did_notify_finished_; | 154 bool did_notify_finished_; |
153 | 155 |
154 base::WeakPtrFactory<ServiceWorkerWriteToCacheJob> weak_factory_; | 156 base::WeakPtrFactory<ServiceWorkerWriteToCacheJob> weak_factory_; |
155 | 157 |
156 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerWriteToCacheJob); | 158 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerWriteToCacheJob); |
157 }; | 159 }; |
158 | 160 |
159 } // namespace content | 161 } // namespace content |
160 | 162 |
161 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_WRITE_TO_CACHE_JOB_H_ | 163 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_WRITE_TO_CACHE_JOB_H_ |
OLD | NEW |