| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); |
| 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 // |registration| claims the document to be controlled. |
| 148 void ClaimedByRegistration(ServiceWorkerRegistration* registration); |
| 149 |
| 147 // Methods to support cross site navigations. | 150 // Methods to support cross site navigations. |
| 148 void PrepareForCrossSiteTransfer(); | 151 void PrepareForCrossSiteTransfer(); |
| 149 void CompleteCrossSiteTransfer( | 152 void CompleteCrossSiteTransfer( |
| 150 int new_process_id, | 153 int new_process_id, |
| 151 int new_frame_id, | 154 int new_frame_id, |
| 152 int new_provider_id, | 155 int new_provider_id, |
| 153 ServiceWorkerDispatcherHost* dispatcher_host); | 156 ServiceWorkerDispatcherHost* dispatcher_host); |
| 154 ServiceWorkerDispatcherHost* dispatcher_host() const { | 157 ServiceWorkerDispatcherHost* dispatcher_host() const { |
| 155 return dispatcher_host_; | 158 return dispatcher_host_; |
| 156 } | 159 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 184 GURL topmost_frame_url_; | 187 GURL topmost_frame_url_; |
| 185 | 188 |
| 186 std::vector<GURL> associated_patterns_; | 189 std::vector<GURL> associated_patterns_; |
| 187 scoped_refptr<ServiceWorkerRegistration> associated_registration_; | 190 scoped_refptr<ServiceWorkerRegistration> associated_registration_; |
| 188 | 191 |
| 189 scoped_refptr<ServiceWorkerVersion> controlling_version_; | 192 scoped_refptr<ServiceWorkerVersion> controlling_version_; |
| 190 scoped_refptr<ServiceWorkerVersion> running_hosted_version_; | 193 scoped_refptr<ServiceWorkerVersion> running_hosted_version_; |
| 191 base::WeakPtr<ServiceWorkerContextCore> context_; | 194 base::WeakPtr<ServiceWorkerContextCore> context_; |
| 192 ServiceWorkerDispatcherHost* dispatcher_host_; | 195 ServiceWorkerDispatcherHost* dispatcher_host_; |
| 193 bool allow_association_; | 196 bool allow_association_; |
| 197 bool is_claiming_; |
| 194 | 198 |
| 195 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 199 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
| 196 }; | 200 }; |
| 197 | 201 |
| 198 } // namespace content | 202 } // namespace content |
| 199 | 203 |
| 200 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 204 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
| OLD | NEW |