| 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 "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 virtual void OnVersionStateChanged(int64 version_id) {} | 52 virtual void OnVersionStateChanged(int64 version_id) {} |
| 53 virtual void OnErrorReported(int64 version_id, | 53 virtual void OnErrorReported(int64 version_id, |
| 54 int process_id, | 54 int process_id, |
| 55 int thread_id, | 55 int thread_id, |
| 56 const ErrorInfo& info) {} | 56 const ErrorInfo& info) {} |
| 57 virtual void OnReportConsoleMessage(int64 version_id, | 57 virtual void OnReportConsoleMessage(int64 version_id, |
| 58 int process_id, | 58 int process_id, |
| 59 int thread_id, | 59 int thread_id, |
| 60 const ConsoleMessage& message) {} | 60 const ConsoleMessage& message) {} |
| 61 virtual void OnRegistrationStored(const GURL& pattern) {} | 61 virtual void OnRegistrationStored(const GURL& pattern) {} |
| 62 virtual void OnRegistrationDeleted(const GURL& pattern) {} | 62 virtual void OnRegistrationDeleted(int64 registration_id, |
| 63 const GURL& pattern) {} |
| 63 | 64 |
| 64 // Notified when the storage corruption recovery is completed and all stored | 65 // Notified when the storage corruption recovery is completed and all stored |
| 65 // data is wiped out. | 66 // data is wiped out. |
| 66 virtual void OnStorageWiped() {} | 67 virtual void OnStorageWiped() {} |
| 67 | 68 |
| 68 protected: | 69 protected: |
| 69 virtual ~ServiceWorkerContextObserver() {} | 70 virtual ~ServiceWorkerContextObserver() {} |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 } // namespace content | 73 } // namespace content |
| 73 | 74 |
| 74 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_ | 75 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_OBSERVER_H_ |
| OLD | NEW |