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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 int request_id, | 69 int request_id, |
70 blink::WebServiceWorkerEventResult result); | 70 blink::WebServiceWorkerEventResult result); |
71 void DidHandlePushEvent(int request_id, | 71 void DidHandlePushEvent(int request_id, |
72 blink::WebServiceWorkerEventResult result); | 72 blink::WebServiceWorkerEventResult result); |
73 void DidHandleSyncEvent(int request_id); | 73 void DidHandleSyncEvent(int request_id); |
74 void DidHandleCrossOriginConnectEvent(int request_id, bool accept_connection); | 74 void DidHandleCrossOriginConnectEvent(int request_id, bool accept_connection); |
75 void GetClientDocuments( | 75 void GetClientDocuments( |
76 blink::WebServiceWorkerClientsCallbacks* callbacks); | 76 blink::WebServiceWorkerClientsCallbacks* callbacks); |
77 void OpenWindow(const GURL& url, | 77 void OpenWindow(const GURL& url, |
78 blink::WebServiceWorkerClientCallbacks* callbacks); | 78 blink::WebServiceWorkerClientCallbacks* callbacks); |
79 void setCachedMetadata(const GURL& url, const char* data, size_t size); | |
80 void clearCachedMetadata(const GURL& url); | |
michaeln
2015/02/18 03:37:34
Upper first letter in method names.
horo
2015/02/18 04:17:06
Done.
| |
79 void PostMessageToDocument( | 81 void PostMessageToDocument( |
80 int client_id, | 82 int client_id, |
81 const base::string16& message, | 83 const base::string16& message, |
82 scoped_ptr<blink::WebMessagePortChannelArray> channels); | 84 scoped_ptr<blink::WebMessagePortChannelArray> channels); |
83 void PostCrossOriginMessageToClient( | 85 void PostCrossOriginMessageToClient( |
84 const blink::WebCrossOriginServiceWorkerClient& client, | 86 const blink::WebCrossOriginServiceWorkerClient& client, |
85 const base::string16& message, | 87 const base::string16& message, |
86 scoped_ptr<blink::WebMessagePortChannelArray> channels); | 88 scoped_ptr<blink::WebMessagePortChannelArray> channels); |
87 void FocusClient(int client_id, | 89 void FocusClient(int client_id, |
88 blink::WebServiceWorkerClientCallbacks* callback); | 90 blink::WebServiceWorkerClientCallbacks* callback); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
177 std::map<int, base::TimeTicks> install_start_timings_; | 179 std::map<int, base::TimeTicks> install_start_timings_; |
178 std::map<int, base::TimeTicks> notification_click_start_timings_; | 180 std::map<int, base::TimeTicks> notification_click_start_timings_; |
179 std::map<int, base::TimeTicks> push_start_timings_; | 181 std::map<int, base::TimeTicks> push_start_timings_; |
180 | 182 |
181 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); | 183 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerScriptContext); |
182 }; | 184 }; |
183 | 185 |
184 } // namespace content | 186 } // namespace content |
185 | 187 |
186 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ | 188 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_SCRIPT_CONTEXT_H_ |
OLD | NEW |