| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CONTEXT_WATCHER_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 const std::string& uuid, | 92 const std::string& uuid, |
| 93 int process_id, | 93 int process_id, |
| 94 int route_id, | 94 int route_id, |
| 95 ServiceWorkerProviderType type) override; | 95 ServiceWorkerProviderType type) override; |
| 96 void OnControlleeRemoved(int64_t version_id, | 96 void OnControlleeRemoved(int64_t version_id, |
| 97 const std::string& uuid) override; | 97 const std::string& uuid) override; |
| 98 void OnRegistrationStored(int64_t registration_id, | 98 void OnRegistrationStored(int64_t registration_id, |
| 99 const GURL& pattern) override; | 99 const GURL& pattern) override; |
| 100 void OnRegistrationDeleted(int64_t registration_id, | 100 void OnRegistrationDeleted(int64_t registration_id, |
| 101 const GURL& pattern) override; | 101 const GURL& pattern) override; |
| 102 void OnForceUpdateOnPageLoadChanged(int64_t registration_id, | |
| 103 bool force_update_on_page_load) override; | |
| 104 | 102 |
| 105 base::ScopedPtrHashMap<int64_t, scoped_ptr<ServiceWorkerVersionInfo>> | 103 base::ScopedPtrHashMap<int64_t, scoped_ptr<ServiceWorkerVersionInfo>> |
| 106 version_info_map_; | 104 version_info_map_; |
| 107 scoped_refptr<ServiceWorkerContextWrapper> context_; | 105 scoped_refptr<ServiceWorkerContextWrapper> context_; |
| 108 WorkerRegistrationUpdatedCallback registration_callback_; | 106 WorkerRegistrationUpdatedCallback registration_callback_; |
| 109 WorkerVersionUpdatedCallback version_callback_; | 107 WorkerVersionUpdatedCallback version_callback_; |
| 110 WorkerErrorReportedCallback error_callback_; | 108 WorkerErrorReportedCallback error_callback_; |
| 111 }; | 109 }; |
| 112 | 110 |
| 113 } // namespace content | 111 } // namespace content |
| 114 | 112 |
| 115 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ | 113 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ |
| OLD | NEW |