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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 void PostMessage(const base::string16& message, | 141 void PostMessage(const base::string16& message, |
142 const std::vector<int>& sent_message_port_ids); | 142 const std::vector<int>& sent_message_port_ids); |
143 | 143 |
144 // Activates the WebContents associated with | 144 // Activates the WebContents associated with |
145 // { render_process_id_, render_frame_id_ }. | 145 // { render_process_id_, render_frame_id_ }. |
146 // Runs the |callback| with the result in parameter describing whether the | 146 // Runs the |callback| with the result in parameter describing whether the |
147 // focusing action was successful. | 147 // focusing action was successful. |
148 void Focus(const FocusCallback& callback); | 148 void Focus(const FocusCallback& callback); |
149 | 149 |
150 // Asks the renderer to send back the document information. | 150 // Asks the renderer to send back the document information. |
151 void GetClientInfo(const GetClientInfoCallback& callback); | 151 void GetClientInfo(const GetClientInfoCallback& callback) const; |
152 | 152 |
153 // Adds reference of this host's process to the |pattern|, the reference will | 153 // Adds reference of this host's process to the |pattern|, the reference will |
154 // be removed in destructor. | 154 // be removed in destructor. |
155 void AddScopedProcessReferenceToPattern(const GURL& pattern); | 155 void AddScopedProcessReferenceToPattern(const GURL& pattern); |
156 | 156 |
157 // Methods to support cross site navigations. | 157 // Methods to support cross site navigations. |
158 void PrepareForCrossSiteTransfer(); | 158 void PrepareForCrossSiteTransfer(); |
159 void CompleteCrossSiteTransfer( | 159 void CompleteCrossSiteTransfer( |
160 int new_process_id, | 160 int new_process_id, |
161 int new_frame_id, | 161 int new_frame_id, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 bool allow_association_; | 224 bool allow_association_; |
225 | 225 |
226 std::vector<base::Closure> queued_events_; | 226 std::vector<base::Closure> queued_events_; |
227 | 227 |
228 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 228 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
229 }; | 229 }; |
230 | 230 |
231 } // namespace content | 231 } // namespace content |
232 | 232 |
233 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 233 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
OLD | NEW |