| 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_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 bool replaced_with_another_client) override; | 63 bool replaced_with_another_client) override; |
| 64 | 64 |
| 65 void ReportWorkerCreated(DevToolsAgentHost* host, bool new_worker); | 65 void ReportWorkerCreated(DevToolsAgentHost* host, bool new_worker); |
| 66 | 66 |
| 67 bool MatchesInspectedPage(ServiceWorkerDevToolsAgentHost* host); | 67 bool MatchesInspectedPage(ServiceWorkerDevToolsAgentHost* host); |
| 68 | 68 |
| 69 void OnWorkerRegistrationUpdated( | 69 void OnWorkerRegistrationUpdated( |
| 70 const std::vector<ServiceWorkerRegistrationInfo>& registrations); | 70 const std::vector<ServiceWorkerRegistrationInfo>& registrations); |
| 71 void OnWorkerVersionUpdated( | 71 void OnWorkerVersionUpdated( |
| 72 const std::vector<ServiceWorkerVersionInfo>& registrations); | 72 const std::vector<ServiceWorkerVersionInfo>& registrations); |
| 73 void OnWorkerRegistrationDeleted(int64 registration_id); | |
| 74 | 73 |
| 75 scoped_refptr<ServiceWorkerContextWrapper> context_; | 74 scoped_refptr<ServiceWorkerContextWrapper> context_; |
| 76 scoped_ptr<Client> client_; | 75 scoped_ptr<Client> client_; |
| 77 using AttachedHosts = std::map< | 76 using AttachedHosts = std::map< |
| 78 std::string, scoped_refptr<ServiceWorkerDevToolsAgentHost>>; | 77 std::string, scoped_refptr<ServiceWorkerDevToolsAgentHost>>; |
| 79 AttachedHosts attached_hosts_; | 78 AttachedHosts attached_hosts_; |
| 80 bool enabled_; | 79 bool enabled_; |
| 81 GURL url_; | 80 GURL url_; |
| 82 scoped_refptr<ContextObserver> context_observer_; | 81 scoped_refptr<ContextObserver> context_observer_; |
| 83 | 82 |
| 84 base::WeakPtrFactory<ServiceWorkerHandler> weak_factory_; | 83 base::WeakPtrFactory<ServiceWorkerHandler> weak_factory_; |
| 85 | 84 |
| 86 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandler); | 85 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandler); |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 } // namespace service_worker | 88 } // namespace service_worker |
| 90 } // namespace devtools | 89 } // namespace devtools |
| 91 } // namespace content | 90 } // namespace content |
| 92 | 91 |
| 93 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ | 92 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ |
| OLD | NEW |