OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 void OnMessageReceived(const IPC::Message& message); | 49 void OnMessageReceived(const IPC::Message& message); |
50 | 50 |
51 void DidHandleActivateEvent(int request_id, | 51 void DidHandleActivateEvent(int request_id, |
52 blink::WebServiceWorkerEventResult); | 52 blink::WebServiceWorkerEventResult); |
53 void DidHandleInstallEvent(int request_id, | 53 void DidHandleInstallEvent(int request_id, |
54 blink::WebServiceWorkerEventResult result); | 54 blink::WebServiceWorkerEventResult result); |
55 void DidHandleFetchEvent(int request_id, | 55 void DidHandleFetchEvent(int request_id, |
56 ServiceWorkerFetchEventResult result, | 56 ServiceWorkerFetchEventResult result, |
57 const ServiceWorkerResponse& response); | 57 const ServiceWorkerResponse& response); |
| 58 void DidHandlePushEvent(int request_id, |
| 59 blink::WebServiceWorkerEventResult result); |
58 void DidHandleSyncEvent(int request_id); | 60 void DidHandleSyncEvent(int request_id); |
59 void GetClientDocuments( | 61 void GetClientDocuments( |
60 blink::WebServiceWorkerClientsCallbacks* callbacks); | 62 blink::WebServiceWorkerClientsCallbacks* callbacks); |
61 void PostMessageToDocument( | 63 void PostMessageToDocument( |
62 int client_id, | 64 int client_id, |
63 const base::string16& message, | 65 const base::string16& message, |
64 scoped_ptr<blink::WebMessagePortChannelArray> channels); | 66 scoped_ptr<blink::WebMessagePortChannelArray> channels); |
65 | 67 |
66 // Send a message to the browser. Takes ownership of |message|. | 68 // Send a message to the browser. Takes ownership of |message|. |
67 void Send(IPC::Message* message); | 69 void Send(IPC::Message* message); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 std::map<int, base::TimeTicks> activate_start_timings_; | 116 std::map<int, base::TimeTicks> activate_start_timings_; |
115 std::map<int, base::TimeTicks> fetch_start_timings_; | 117 std::map<int, base::TimeTicks> fetch_start_timings_; |
116 std::map<int, base::TimeTicks> install_start_timings_; | 118 std::map<int, base::TimeTicks> install_start_timings_; |
117 | 119 |
118 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); | 120 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); |
119 }; | 121 }; |
120 | 122 |
121 } // namespace content | 123 } // namespace content |
122 | 124 |
123 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ | 125 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
OLD | NEW |