| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 void SendRegistrationInfo( | 62 void SendRegistrationInfo( |
| 63 int64_t registration_id, | 63 int64_t registration_id, |
| 64 const GURL& pattern, | 64 const GURL& pattern, |
| 65 ServiceWorkerRegistrationInfo::DeleteFlag delete_flag); | 65 ServiceWorkerRegistrationInfo::DeleteFlag delete_flag); |
| 66 void SendVersionInfo(const ServiceWorkerVersionInfo& version); | 66 void SendVersionInfo(const ServiceWorkerVersionInfo& version); |
| 67 | 67 |
| 68 // ServiceWorkerContextObserver implements | 68 // ServiceWorkerContextObserver implements |
| 69 void OnNewLiveRegistration(int64_t registration_id, | 69 void OnNewLiveRegistration(int64_t registration_id, |
| 70 const GURL& pattern) override; | 70 const GURL& pattern) override; |
| 71 void OnNewLiveVersion(int64_t version_id, | 71 void OnNewLiveVersion(const ServiceWorkerVersionInfo& version_info) override; |
| 72 int64_t registration_id, | |
| 73 const GURL& script_url) override; | |
| 74 void OnRunningStateChanged( | 72 void OnRunningStateChanged( |
| 75 int64_t version_id, | 73 int64_t version_id, |
| 76 content::EmbeddedWorkerStatus running_status) override; | 74 content::EmbeddedWorkerStatus running_status) override; |
| 77 void OnVersionStateChanged( | 75 void OnVersionStateChanged( |
| 78 int64_t version_id, | 76 int64_t version_id, |
| 79 content::ServiceWorkerVersion::Status status) override; | 77 content::ServiceWorkerVersion::Status status) override; |
| 78 void OnVersionDevToolsRoutingIdChanged(int64_t version_id, |
| 79 int process_id, |
| 80 int devtools_agent_route_id) override; |
| 80 void OnMainScriptHttpResponseInfoSet( | 81 void OnMainScriptHttpResponseInfoSet( |
| 81 int64_t version_id, | 82 int64_t version_id, |
| 82 base::Time script_response_time, | 83 base::Time script_response_time, |
| 83 base::Time script_last_modified) override; | 84 base::Time script_last_modified) override; |
| 84 void OnErrorReported(int64_t version_id, | 85 void OnErrorReported(int64_t version_id, |
| 85 int process_id, | 86 int process_id, |
| 86 int thread_id, | 87 int thread_id, |
| 87 const ErrorInfo& info) override; | 88 const ErrorInfo& info) override; |
| 88 void OnReportConsoleMessage(int64_t version_id, | 89 void OnReportConsoleMessage(int64_t version_id, |
| 89 int process_id, | 90 int process_id, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 105 version_info_map_; | 106 version_info_map_; |
| 106 scoped_refptr<ServiceWorkerContextWrapper> context_; | 107 scoped_refptr<ServiceWorkerContextWrapper> context_; |
| 107 WorkerRegistrationUpdatedCallback registration_callback_; | 108 WorkerRegistrationUpdatedCallback registration_callback_; |
| 108 WorkerVersionUpdatedCallback version_callback_; | 109 WorkerVersionUpdatedCallback version_callback_; |
| 109 WorkerErrorReportedCallback error_callback_; | 110 WorkerErrorReportedCallback error_callback_; |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 } // namespace content | 113 } // namespace content |
| 113 | 114 |
| 114 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ | 115 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ |
| OLD | NEW |