| 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_CONTEXT_OBSERVER_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 const std::string& uuid, | 73 const std::string& uuid, |
| 74 int process_id, | 74 int process_id, |
| 75 int route_id, | 75 int route_id, |
| 76 ServiceWorkerProviderType type) {} | 76 ServiceWorkerProviderType type) {} |
| 77 virtual void OnControlleeRemoved(int64_t version_id, | 77 virtual void OnControlleeRemoved(int64_t version_id, |
| 78 const std::string& uuid) {} | 78 const std::string& uuid) {} |
| 79 virtual void OnRegistrationStored(int64_t registration_id, | 79 virtual void OnRegistrationStored(int64_t registration_id, |
| 80 const GURL& pattern) {} | 80 const GURL& pattern) {} |
| 81 virtual void OnRegistrationDeleted(int64_t registration_id, | 81 virtual void OnRegistrationDeleted(int64_t registration_id, |
| 82 const GURL& pattern) {} | 82 const GURL& pattern) {} |
| 83 virtual void OnForceUpdateOnPageLoadChanged(int64_t registration_id, | |
| 84 bool force_update_on_page_load) {} | |
| 85 | 83 |
| 86 // Notified when the storage corruption recovery is completed and all stored | 84 // Notified when the storage corruption recovery is completed and all stored |
| 87 // data is wiped out. | 85 // data is wiped out. |
| 88 virtual void OnStorageWiped() {} | 86 virtual void OnStorageWiped() {} |
| 89 | 87 |
| 90 protected: | 88 protected: |
| 91 virtual ~ServiceWorkerContextObserver() {} | 89 virtual ~ServiceWorkerContextObserver() {} |
| 92 }; | 90 }; |
| 93 | 91 |
| 94 } // namespace content | 92 } // namespace content |
| 95 | 93 |
| 96 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_ | 94 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_ |
| OLD | NEW |