Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: content/browser/worker_host/worker_process_host.h

Issue 23851010: Modify ResourceMessageFilter so that it can support attaching to PluginProcessHost. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WORKER_HOST_WORKER_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "content/browser/worker_host/worker_document_set.h" 15 #include "content/browser/worker_host/worker_document_set.h"
16 #include "content/browser/worker_host/worker_storage_partition.h" 16 #include "content/browser/worker_host/worker_storage_partition.h"
17 #include "content/common/content_export.h" 17 #include "content/common/content_export.h"
18 #include "content/public/browser/browser_child_process_host_delegate.h" 18 #include "content/public/browser/browser_child_process_host_delegate.h"
19 #include "content/public/browser/browser_child_process_host_iterator.h" 19 #include "content/public/browser/browser_child_process_host_iterator.h"
20 #include "content/public/common/process_type.h" 20 #include "content/public/common/process_type.h"
21 #include "ipc/ipc_sender.h" 21 #include "ipc/ipc_sender.h"
22 #include "url/gurl.h" 22 #include "url/gurl.h"
23 #include "webkit/common/resource_type.h"
24
25 struct ResourceHostMsg_Request;
23 26
24 namespace fileapi { 27 namespace fileapi {
25 class FileSystemContext; 28 class FileSystemContext;
26 } // namespace fileapi 29 } // namespace fileapi
27 30
31 namespace net {
32 class URLRequestContext;
33 }
34
28 namespace webkit_database { 35 namespace webkit_database {
29 class DatabaseTracker; 36 class DatabaseTracker;
30 } // namespace webkit_database 37 } // namespace webkit_database
31 38
32 namespace content { 39 namespace content {
33 class BrowserChildProcessHostImpl; 40 class BrowserChildProcessHostImpl;
34 class IndexedDBContextImpl; 41 class IndexedDBContextImpl;
35 class ResourceContext; 42 class ResourceContext;
36 class SocketStreamDispatcherHost; 43 class SocketStreamDispatcherHost;
37 class WorkerServiceImpl; 44 class WorkerServiceImpl;
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 218
212 virtual bool CanShutdown() OVERRIDE; 219 virtual bool CanShutdown() OVERRIDE;
213 220
214 // Updates the title shown in the task manager. 221 // Updates the title shown in the task manager.
215 void UpdateTitle(); 222 void UpdateTitle();
216 223
217 // Return a vector of all the render process/render view IDs that use the 224 // Return a vector of all the render process/render view IDs that use the
218 // given worker. 225 // given worker.
219 std::vector<std::pair<int, int> > GetRenderViewIDsForWorker(int route_id); 226 std::vector<std::pair<int, int> > GetRenderViewIDsForWorker(int route_id);
220 227
228 // Callbacks for ResourceMessageFilter and SocketStreamDispatcherHost.
229 void GetContexts(const ResourceHostMsg_Request& request,
230 ResourceContext** resource_context,
231 net::URLRequestContext** request_context);
232 net::URLRequestContext* GetRequestContext(ResourceType::Type resource_type);
233
221 Instances instances_; 234 Instances instances_;
222 235
223 ResourceContext* const resource_context_; 236 ResourceContext* const resource_context_;
224 WorkerStoragePartition partition_; 237 WorkerStoragePartition partition_;
225 238
226 // A reference to the filter associated with this worker process. We need to 239 // A reference to the filter associated with this worker process. We need to
227 // keep this around since we'll use it when forward messages to the worker 240 // keep this around since we'll use it when forward messages to the worker
228 // process. 241 // process.
229 scoped_refptr<WorkerMessageFilter> worker_message_filter_; 242 scoped_refptr<WorkerMessageFilter> worker_message_filter_;
230 243
(...skipping 10 matching lines...) Expand all
241 public: 254 public:
242 WorkerProcessHostIterator() 255 WorkerProcessHostIterator()
243 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>( 256 : BrowserChildProcessHostTypeIterator<WorkerProcessHost>(
244 PROCESS_TYPE_WORKER) { 257 PROCESS_TYPE_WORKER) {
245 } 258 }
246 }; 259 };
247 260
248 } // namespace content 261 } // namespace content
249 262
250 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 263 #endif // CONTENT_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698