| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // Dispatches message event to the document. | 129 // Dispatches message event to the document. |
| 130 void PostMessage(const base::string16& message, | 130 void PostMessage(const base::string16& message, |
| 131 const std::vector<int>& sent_message_port_ids); | 131 const std::vector<int>& sent_message_port_ids); |
| 132 | 132 |
| 133 // Activates the WebContents associated with | 133 // Activates the WebContents associated with |
| 134 // { render_process_id_, render_frame_id_ }. | 134 // { render_process_id_, render_frame_id_ }. |
| 135 // Runs the |callback| with the result in parameter describing whether the | 135 // Runs the |callback| with the result in parameter describing whether the |
| 136 // focusing action was successful. | 136 // focusing action was successful. |
| 137 void Focus(const FocusCallback& callback); | 137 void Focus(const FocusCallback& callback); |
| 138 | 138 |
| 139 void GetClientInfo(int embedded_worker_id, int request_id); |
| 140 |
| 139 // Adds reference of this host's process to the |pattern|, the reference will | 141 // Adds reference of this host's process to the |pattern|, the reference will |
| 140 // be removed in destructor. | 142 // be removed in destructor. |
| 141 void AddScopedProcessReferenceToPattern(const GURL& pattern); | 143 void AddScopedProcessReferenceToPattern(const GURL& pattern); |
| 142 | 144 |
| 143 private: | 145 private: |
| 144 friend class ServiceWorkerProviderHostTest; | 146 friend class ServiceWorkerProviderHostTest; |
| 145 friend class ServiceWorkerWriteToCacheJobTest; | 147 friend class ServiceWorkerWriteToCacheJobTest; |
| 146 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, | 148 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, |
| 147 UpdateBefore24Hours); | 149 UpdateBefore24Hours); |
| 148 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, | 150 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerContextRequestHandlerTest, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 178 base::WeakPtr<ServiceWorkerContextCore> context_; | 180 base::WeakPtr<ServiceWorkerContextCore> context_; |
| 179 ServiceWorkerDispatcherHost* dispatcher_host_; | 181 ServiceWorkerDispatcherHost* dispatcher_host_; |
| 180 bool allow_association_; | 182 bool allow_association_; |
| 181 | 183 |
| 182 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); | 184 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderHost); |
| 183 }; | 185 }; |
| 184 | 186 |
| 185 } // namespace content | 187 } // namespace content |
| 186 | 188 |
| 187 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ | 189 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_PROVIDER_HOST_H_ |
| OLD | NEW |