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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 140 // Asks the renderer to send back the document information. |
141 void GetClientInfo(int embedded_worker_id, int request_id); | 141 void GetClientInfo(int embedded_worker_id, int request_id) const; |
142 | 142 |
143 // 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 |
144 // be removed in destructor. | 144 // be removed in destructor. |
145 void AddScopedProcessReferenceToPattern(const GURL& pattern); | 145 void AddScopedProcessReferenceToPattern(const GURL& pattern); |
146 | 146 |
147 // Methods to support cross site navigations. | 147 // Methods to support cross site navigations. |
148 void PrepareForCrossSiteTransfer(); | 148 void PrepareForCrossSiteTransfer(); |
149 void CompleteCrossSiteTransfer( | 149 void CompleteCrossSiteTransfer( |
150 int new_process_id, | 150 int new_process_id, |
151 int new_frame_id, | 151 int new_frame_id, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 base::WeakPtr<ServiceWorkerContextCore> context_; | 191 base::WeakPtr<ServiceWorkerContextCore> context_; |
192 ServiceWorkerDispatcherHost* dispatcher_host_; | 192 ServiceWorkerDispatcherHost* dispatcher_host_; |
193 bool allow_association_; | 193 bool allow_association_; |
194 | 194 |
195 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 195 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
196 }; | 196 }; |
197 | 197 |
198 } // namespace content | 198 } // namespace content |
199 | 199 |
200 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 200 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
OLD | NEW |