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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void PostMessage(const base::string16& message, | 139 void PostMessage(const base::string16& message, |
140 const std::vector<int>& sent_message_port_ids); | 140 const std::vector<int>& sent_message_port_ids); |
141 | 141 |
142 // Activates the WebContents associated with | 142 // Activates the WebContents associated with |
143 // { render_process_id_, render_frame_id_ }. | 143 // { render_process_id_, render_frame_id_ }. |
144 // Runs the |callback| with the result in parameter describing whether the | 144 // Runs the |callback| with the result in parameter describing whether the |
145 // focusing action was successful. | 145 // focusing action was successful. |
146 void Focus(const FocusCallback& callback); | 146 void Focus(const FocusCallback& callback); |
147 | 147 |
148 // Asks the renderer to send back the document information. | 148 // Asks the renderer to send back the document information. |
149 void GetClientInfo(const GetClientInfoCallback& callback); | 149 void GetClientInfo(const GetClientInfoCallback& callback) const; |
150 | 150 |
151 // Adds reference of this host's process to the |pattern|, the reference will | 151 // Adds reference of this host's process to the |pattern|, the reference will |
152 // be removed in destructor. | 152 // be removed in destructor. |
153 void AddScopedProcessReferenceToPattern(const GURL& pattern); | 153 void AddScopedProcessReferenceToPattern(const GURL& pattern); |
154 | 154 |
155 // Methods to support cross site navigations. | 155 // Methods to support cross site navigations. |
156 void PrepareForCrossSiteTransfer(); | 156 void PrepareForCrossSiteTransfer(); |
157 void CompleteCrossSiteTransfer( | 157 void CompleteCrossSiteTransfer( |
158 int new_process_id, | 158 int new_process_id, |
159 int new_frame_id, | 159 int new_frame_id, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 base::WeakPtr<ServiceWorkerContextCore> context_; | 214 base::WeakPtr<ServiceWorkerContextCore> context_; |
215 ServiceWorkerDispatcherHost* dispatcher_host_; | 215 ServiceWorkerDispatcherHost* dispatcher_host_; |
216 bool allow_association_; | 216 bool allow_association_; |
217 | 217 |
218 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 218 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
219 }; | 219 }; |
220 | 220 |
221 } // namespace content | 221 } // namespace content |
222 | 222 |
223 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 223 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
OLD | NEW |