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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 base::Time script_response_time, | 77 base::Time script_response_time, |
78 base::Time script_last_modified) override; | 78 base::Time script_last_modified) override; |
79 void OnErrorReported(int64 version_id, | 79 void OnErrorReported(int64 version_id, |
80 int process_id, | 80 int process_id, |
81 int thread_id, | 81 int thread_id, |
82 const ErrorInfo& info) override; | 82 const ErrorInfo& info) override; |
83 void OnReportConsoleMessage(int64 version_id, | 83 void OnReportConsoleMessage(int64 version_id, |
84 int process_id, | 84 int process_id, |
85 int thread_id, | 85 int thread_id, |
86 const ConsoleMessage& message) override; | 86 const ConsoleMessage& message) override; |
| 87 void OnControlleeAdded(int64 version_id, |
| 88 const std::string& uuid, |
| 89 int process_id, |
| 90 int route_id, |
| 91 ServiceWorkerProviderType type) override; |
| 92 void OnControlleeRemoved(int64 version_id, const std::string& uuid) override; |
87 void OnRegistrationStored(int64 registration_id, | 93 void OnRegistrationStored(int64 registration_id, |
88 const GURL& pattern) override; | 94 const GURL& pattern) override; |
89 void OnRegistrationDeleted(int64 registration_id, | 95 void OnRegistrationDeleted(int64 registration_id, |
90 const GURL& pattern) override; | 96 const GURL& pattern) override; |
91 | 97 |
92 base::ScopedPtrHashMap<int64, scoped_ptr<ServiceWorkerVersionInfo>> | 98 base::ScopedPtrHashMap<int64, scoped_ptr<ServiceWorkerVersionInfo>> |
93 version_info_map_; | 99 version_info_map_; |
94 scoped_refptr<ServiceWorkerContextWrapper> context_; | 100 scoped_refptr<ServiceWorkerContextWrapper> context_; |
95 WorkerRegistrationUpdatedCallback registration_callback_; | 101 WorkerRegistrationUpdatedCallback registration_callback_; |
96 WorkerVersionUpdatedCallback version_callback_; | 102 WorkerVersionUpdatedCallback version_callback_; |
97 WorkerErrorReportedCallback error_callback_; | 103 WorkerErrorReportedCallback error_callback_; |
98 }; | 104 }; |
99 | 105 |
100 } // namespace content | 106 } // namespace content |
101 | 107 |
102 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ | 108 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WATCHER_H_ |
OLD | NEW |