| 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 // |registration| claims the document to be controlled. | 157 // |registration| claims the document to be controlled. |
| 158 void ClaimedByRegistration(ServiceWorkerRegistration* registration); | 158 void ClaimedByRegistration(ServiceWorkerRegistration* registration); |
| 159 | 159 |
| 160 // Methods to support cross site navigations. | 160 // Methods to support cross site navigations. |
| 161 void PrepareForCrossSiteTransfer(); | 161 void PrepareForCrossSiteTransfer(); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 bool is_claiming_; | 228 bool is_claiming_; |
| 229 | 229 |
| 230 std::vector<base::Closure> queued_events_; | 230 std::vector<base::Closure> queued_events_; |
| 231 | 231 |
| 232 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 232 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 } // namespace content | 235 } // namespace content |
| 236 | 236 |
| 237 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 237 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
| OLD | NEW |