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

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

Issue 5541005: Make BrowserMessageFilter support dispatching messages on different threads. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « chrome/browser/renderer_host/audio_renderer_host.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
6 #define CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/ref_counted.h" 15 #include "base/ref_counted.h"
16 #include "chrome/browser/browser_child_process_host.h" 16 #include "chrome/browser/browser_child_process_host.h"
17 #include "chrome/browser/browser_io_message_filter.h" 17 #include "chrome/browser/browser_message_filter.h"
18 #include "chrome/browser/net/chrome_url_request_context.h" 18 #include "chrome/browser/net/chrome_url_request_context.h"
19 #include "chrome/browser/worker_host/worker_document_set.h" 19 #include "chrome/browser/worker_host/worker_document_set.h"
20 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
21 #include "ipc/ipc_channel.h" 21 #include "ipc/ipc_channel.h"
22 22
23 class BlobDispatcherHost; 23 class BlobDispatcherHost;
24 class ChromeURLRequestContext; 24 class ChromeURLRequestContext;
25 class ChromeURLRequestContextGetter; 25 class ChromeURLRequestContextGetter;
26 class DatabaseDispatcherHost; 26 class DatabaseDispatcherHost;
27 class FileSystemDispatcherHost; 27 class FileSystemDispatcherHost;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 scoped_refptr<ChromeURLRequestContext> request_context_; 216 scoped_refptr<ChromeURLRequestContext> request_context_;
217 scoped_refptr<DatabaseDispatcherHost> db_dispatcher_host_; 217 scoped_refptr<DatabaseDispatcherHost> db_dispatcher_host_;
218 scoped_ptr<BlobDispatcherHost> blob_dispatcher_host_; 218 scoped_ptr<BlobDispatcherHost> blob_dispatcher_host_;
219 scoped_refptr<FileSystemDispatcherHost> file_system_dispatcher_host_; 219 scoped_refptr<FileSystemDispatcherHost> file_system_dispatcher_host_;
220 scoped_refptr<FileUtilitiesDispatcherHost> file_utilities_dispatcher_host_; 220 scoped_refptr<FileUtilitiesDispatcherHost> file_utilities_dispatcher_host_;
221 scoped_refptr<MimeRegistryDispatcher> mime_registry_dispatcher_; 221 scoped_refptr<MimeRegistryDispatcher> mime_registry_dispatcher_;
222 222
223 // Holds all the IPC message filters. Since the worker process host is on the 223 // Holds all the IPC message filters. Since the worker process host is on the
224 // IO thread, we don't have a IPC::ChannelProxy and so we manage filters 224 // IO thread, we don't have a IPC::ChannelProxy and so we manage filters
225 // manually. 225 // manually.
226 std::vector<scoped_refptr<BrowserIOMessageFilter> > filters_; 226 std::vector<scoped_refptr<BrowserMessageFilter> > filters_;
227 227
228 // A callback to create a routing id for the associated worker process. 228 // A callback to create a routing id for the associated worker process.
229 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; 229 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_;
230 230
231 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost); 231 DISALLOW_COPY_AND_ASSIGN(WorkerProcessHost);
232 }; 232 };
233 233
234 #endif // CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_ 234 #endif // CHROME_BROWSER_WORKER_HOST_WORKER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/audio_renderer_host.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698