| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 void Detached(); | 47 void Detached(); |
| 48 | 48 |
| 49 // Protocol 'service worker' domain implementation. | 49 // Protocol 'service worker' domain implementation. |
| 50 Response Enable(); | 50 Response Enable(); |
| 51 Response Disable(); | 51 Response Disable(); |
| 52 Response SendMessage(const std::string& worker_id, | 52 Response SendMessage(const std::string& worker_id, |
| 53 const std::string& message); | 53 const std::string& message); |
| 54 Response Stop(const std::string& worker_id); | 54 Response Stop(const std::string& worker_id); |
| 55 Response Unregister(const std::string& scope_url); | 55 Response Unregister(const std::string& scope_url); |
| 56 Response StartWorker(const std::string& scope_url); | 56 Response StartWorker(const std::string& scope_url); |
| 57 Response SkipWaiting(const std::string& scope_url); |
| 57 Response StopWorker(const std::string& version_id); | 58 Response StopWorker(const std::string& version_id); |
| 58 Response UpdateRegistration(const std::string& scope_url); | 59 Response UpdateRegistration(const std::string& scope_url); |
| 59 Response InspectWorker(const std::string& version_id); | 60 Response InspectWorker(const std::string& version_id); |
| 60 Response SetForceUpdateOnPageLoad(bool force_update_on_page_load); | 61 Response SetForceUpdateOnPageLoad(bool force_update_on_page_load); |
| 61 Response DeliverPushMessage(const std::string& origin, | 62 Response DeliverPushMessage(const std::string& origin, |
| 62 const std::string& registration_id, | 63 const std::string& registration_id, |
| 63 const std::string& data); | 64 const std::string& data); |
| 64 Response GetTargetInfo(const std::string& target_id, | 65 Response GetTargetInfo(const std::string& target_id, |
| 65 scoped_refptr<TargetInfo>* target_info); | 66 scoped_refptr<TargetInfo>* target_info); |
| 66 Response ActivateTarget(const std::string& target_id); | 67 Response ActivateTarget(const std::string& target_id); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 base::WeakPtrFactory<ServiceWorkerHandler> weak_factory_; | 105 base::WeakPtrFactory<ServiceWorkerHandler> weak_factory_; |
| 105 | 106 |
| 106 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandler); | 107 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerHandler); |
| 107 }; | 108 }; |
| 108 | 109 |
| 109 } // namespace service_worker | 110 } // namespace service_worker |
| 110 } // namespace devtools | 111 } // namespace devtools |
| 111 } // namespace content | 112 } // namespace content |
| 112 | 113 |
| 113 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ | 114 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_SERVICE_WORKER_HANDLER_H_ |
| OLD | NEW |