OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PROVIDER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Dispatches message event to the document. | 130 // Dispatches message event to the document. |
131 void PostMessage(const base::string16& message, | 131 void PostMessage(const base::string16& message, |
132 const std::vector<int>& sent_message_port_ids); | 132 const std::vector<int>& sent_message_port_ids); |
133 | 133 |
134 // Activates the WebContents associated with | 134 // Activates the WebContents associated with |
135 // { render_process_id_, render_frame_id_ }. | 135 // { render_process_id_, render_frame_id_ }. |
136 // Runs the |callback| with the result in parameter describing whether the | 136 // Runs the |callback| with the result in parameter describing whether the |
137 // focusing action was successful. | 137 // focusing action was successful. |
138 void Focus(const FocusCallback& callback); | 138 void Focus(const FocusCallback& callback); |
139 | 139 |
| 140 // Asks the renderer to send back the document information. |
| 141 void GetClientInfo(int embedded_worker_id, int request_id); |
| 142 |
140 // Adds reference of this host's process to the |pattern|, the reference will | 143 // Adds reference of this host's process to the |pattern|, the reference will |
141 // be removed in destructor. | 144 // be removed in destructor. |
142 void AddScopedProcessReferenceToPattern(const GURL& pattern); | 145 void AddScopedProcessReferenceToPattern(const GURL& pattern); |
143 | 146 |
144 // Methods to support cross site navigations. | 147 // Methods to support cross site navigations. |
145 void PrepareForCrossSiteTransfer(); | 148 void PrepareForCrossSiteTransfer(); |
146 void CompleteCrossSiteTransfer( | 149 void CompleteCrossSiteTransfer( |
147 int new_process_id, | 150 int new_process_id, |
148 int new_frame_id, | 151 int new_frame_id, |
149 int new_provider_id, | 152 int new_provider_id, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 base::WeakPtr<ServiceWorkerContextCore> context_; | 195 base::WeakPtr<ServiceWorkerContextCore> context_; |
193 ServiceWorkerDispatcherHost* dispatcher_host_; | 196 ServiceWorkerDispatcherHost* dispatcher_host_; |
194 bool allow_association_; | 197 bool allow_association_; |
195 | 198 |
196 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 199 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
197 }; | 200 }; |
198 | 201 |
199 } // namespace content | 202 } // namespace content |
200 | 203 |
201 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 204 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
OLD | NEW |