| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 60   void SendVersionInfo(const ServiceWorkerVersionInfo& version); | 60   void SendVersionInfo(const ServiceWorkerVersionInfo& version); | 
| 61 | 61 | 
| 62   // ServiceWorkerContextObserver implements | 62   // ServiceWorkerContextObserver implements | 
| 63   void OnNewLiveRegistration(int64 registration_id, | 63   void OnNewLiveRegistration(int64 registration_id, | 
| 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, | 
|  | 71       int process_id, | 
|  | 72       int thread_id, | 
|  | 73       int devtools_agent_route_id) override; | 
| 71   void OnVersionStateChanged( | 74   void OnVersionStateChanged( | 
| 72       int64 version_id, | 75       int64 version_id, | 
| 73       content::ServiceWorkerVersion::Status status) override; | 76       content::ServiceWorkerVersion::Status status) override; | 
| 74   void OnMainScriptHttpResponseInfoSet( | 77   void OnMainScriptHttpResponseInfoSet( | 
| 75       int64 version_id, | 78       int64 version_id, | 
| 76       base::Time script_response_time, | 79       base::Time script_response_time, | 
| 77       base::Time script_last_modified) override; | 80       base::Time script_last_modified) override; | 
| 78   void OnErrorReported(int64 version_id, | 81   void OnErrorReported(int64 version_id, | 
| 79                        int process_id, | 82                        int process_id, | 
| 80                        int thread_id, | 83                        int thread_id, | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 91   base::ScopedPtrHashMap<int64, ServiceWorkerVersionInfo> version_info_map_; | 94   base::ScopedPtrHashMap<int64, ServiceWorkerVersionInfo> version_info_map_; | 
| 92   scoped_refptr<ServiceWorkerContextWrapper> context_; | 95   scoped_refptr<ServiceWorkerContextWrapper> context_; | 
| 93   WorkerRegistrationUpdatedCallback registration_callback_; | 96   WorkerRegistrationUpdatedCallback registration_callback_; | 
| 94   WorkerVersionUpdatedCallback version_callback_; | 97   WorkerVersionUpdatedCallback version_callback_; | 
| 95   WorkerErrorReportedCallback error_callback_; | 98   WorkerErrorReportedCallback error_callback_; | 
| 96 }; | 99 }; | 
| 97 | 100 | 
| 98 }  // namespace content | 101 }  // namespace content | 
| 99 | 102 | 
| 100 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ | 103 #endif  // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ | 
| OLD | NEW | 
|---|