| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const GURL& pattern) override; | 64 const GURL& pattern) override; |
| 65 void OnNewLiveVersion(int64 version_id, | 65 void OnNewLiveVersion(int64 version_id, |
| 66 int64 registration_id, | 66 int64 registration_id, |
| 67 const GURL& script_url) override; | 67 const GURL& script_url) override; |
| 68 void OnRunningStateChanged( | 68 void OnRunningStateChanged( |
| 69 int64 version_id, | 69 int64 version_id, |
| 70 content::ServiceWorkerVersion::RunningStatus running_status) override; | 70 content::ServiceWorkerVersion::RunningStatus running_status) override; |
| 71 void OnVersionStateChanged( | 71 void OnVersionStateChanged( |
| 72 int64 version_id, | 72 int64 version_id, |
| 73 content::ServiceWorkerVersion::Status status) override; | 73 content::ServiceWorkerVersion::Status status) override; |
| 74 void OnMainScriptHttpResponseInfoSet( |
| 75 int64 version_id, |
| 76 base::Time script_response_time, |
| 77 base::Time script_last_modified) override; |
| 74 void OnErrorReported(int64 version_id, | 78 void OnErrorReported(int64 version_id, |
| 75 int process_id, | 79 int process_id, |
| 76 int thread_id, | 80 int thread_id, |
| 77 const ErrorInfo& info) override; | 81 const ErrorInfo& info) override; |
| 78 void OnReportConsoleMessage(int64 version_id, | 82 void OnReportConsoleMessage(int64 version_id, |
| 79 int process_id, | 83 int process_id, |
| 80 int thread_id, | 84 int thread_id, |
| 81 const ConsoleMessage& message) override; | 85 const ConsoleMessage& message) override; |
| 82 void OnRegistrationStored(int64 registration_id, | 86 void OnRegistrationStored(int64 registration_id, |
| 83 const GURL& pattern) override; | 87 const GURL& pattern) override; |
| 84 void OnRegistrationDeleted(int64 registration_id, | 88 void OnRegistrationDeleted(int64 registration_id, |
| 85 const GURL& pattern) override; | 89 const GURL& pattern) override; |
| 86 | 90 |
| 87 base::ScopedPtrHashMap<int64, ServiceWorkerVersionInfo> version_info_map_; | 91 base::ScopedPtrHashMap<int64, ServiceWorkerVersionInfo> version_info_map_; |
| 88 scoped_refptr<ServiceWorkerContextWrapper> context_; | 92 scoped_refptr<ServiceWorkerContextWrapper> context_; |
| 89 WorkerRegistrationUpdatedCallback registration_callback_; | 93 WorkerRegistrationUpdatedCallback registration_callback_; |
| 90 WorkerVersionUpdatedCallback version_callback_; | 94 WorkerVersionUpdatedCallback version_callback_; |
| 91 WorkerErrorReportedCallback error_callback_; | 95 WorkerErrorReportedCallback error_callback_; |
| 92 }; | 96 }; |
| 93 | 97 |
| 94 } // namespace content | 98 } // namespace content |
| 95 | 99 |
| 96 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ | 100 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ |
| OLD | NEW |