| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ | 6 #define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/containers/scoped_ptr_hash_map.h" | 11 #include "base/containers/scoped_ptr_hash_map.h" |
| 12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
| 13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
| 16 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| 17 #include "content/public/browser/worker_service.h" | 17 #include "content/public/browser/worker_service.h" |
| 18 | 18 |
| 19 |
| 19 struct ViewHostMsg_CreateWorker_Params; | 20 struct ViewHostMsg_CreateWorker_Params; |
| 20 | 21 |
| 21 namespace IPC { | 22 namespace IPC { |
| 22 class Message; | 23 class Message; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace content { | 26 namespace content { |
| 26 | 27 |
| 27 class SharedWorkerInstance; | 28 class SharedWorkerInstance; |
| 28 class SharedWorkerHost; | 29 class SharedWorkerHost; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 SharedWorkerMessageFilter* filter); | 80 SharedWorkerMessageFilter* filter); |
| 80 void AllowFileSystem(int worker_route_id, | 81 void AllowFileSystem(int worker_route_id, |
| 81 const GURL& url, | 82 const GURL& url, |
| 82 IPC::Message* reply_msg, | 83 IPC::Message* reply_msg, |
| 83 SharedWorkerMessageFilter* filter); | 84 SharedWorkerMessageFilter* filter); |
| 84 void AllowIndexedDB(int worker_route_id, | 85 void AllowIndexedDB(int worker_route_id, |
| 85 const GURL& url, | 86 const GURL& url, |
| 86 const base::string16& name, | 87 const base::string16& name, |
| 87 bool* result, | 88 bool* result, |
| 88 SharedWorkerMessageFilter* filter); | 89 SharedWorkerMessageFilter* filter); |
| 90 void AcceptLanguageChanged(const base::string16& languages); |
| 89 | 91 |
| 90 void OnSharedWorkerMessageFilterClosing( | 92 void OnSharedWorkerMessageFilterClosing( |
| 91 SharedWorkerMessageFilter* filter); | 93 SharedWorkerMessageFilter* filter); |
| 92 | 94 |
| 93 // Checks the worker dependency of renderer processes and calls | 95 // Checks the worker dependency of renderer processes and calls |
| 94 // IncrementWorkerRefCount and DecrementWorkerRefCount of | 96 // IncrementWorkerRefCount and DecrementWorkerRefCount of |
| 95 // RenderProcessHostImpl on UI thread if necessary. | 97 // RenderProcessHostImpl on UI thread if necessary. |
| 96 void CheckWorkerDependency(); | 98 void CheckWorkerDependency(); |
| 97 | 99 |
| 98 void NotifyWorkerDestroyed(int worker_process_id, int worker_route_id); | 100 void NotifyWorkerDestroyed(int worker_process_id, int worker_route_id); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 int next_pending_instance_id_; | 171 int next_pending_instance_id_; |
| 170 | 172 |
| 171 ObserverList<WorkerServiceObserver> observers_; | 173 ObserverList<WorkerServiceObserver> observers_; |
| 172 | 174 |
| 173 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl); | 175 DISALLOW_COPY_AND_ASSIGN(SharedWorkerServiceImpl); |
| 174 }; | 176 }; |
| 175 | 177 |
| 176 } // namespace content | 178 } // namespace content |
| 177 | 179 |
| 178 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ | 180 #endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_SERVICE_IMPL_H_ |
| OLD | NEW |