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

Unified Diff: content/common/child_thread.h

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/child_process.cc ('k') | content/common/child_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_thread.h
===================================================================
--- content/common/child_thread.h (revision 163290)
+++ content/common/child_thread.h (working copy)
@@ -15,16 +15,8 @@
#include "ipc/ipc_message.h" // For IPC_MESSAGE_LOG_ENABLED.
#include "webkit/glue/resource_loader_bridge.h"
-class FileSystemDispatcher;
class MessageLoop;
-class QuotaDispatcher;
-class SocketStreamDispatcher;
-namespace content {
-class ChildHistogramMessageFilter;
-class ResourceDispatcher;
-}
-
namespace IPC {
class SyncChannel;
class SyncMessageFilter;
@@ -34,6 +26,13 @@
class WebFrame;
}
+namespace content {
+class ChildHistogramMessageFilter;
+class FileSystemDispatcher;
+class QuotaDispatcher;
+class ResourceDispatcher;
+class SocketStreamDispatcher;
+
// The main thread of a child process derives from this class.
class CONTENT_EXPORT ChildThread : public IPC::Listener, public IPC::Sender {
public:
@@ -65,7 +64,7 @@
// but on windows the child process directly allocates the block.
base::SharedMemory* AllocateSharedMemory(size_t buf_size);
- content::ResourceDispatcher* resource_dispatcher();
+ ResourceDispatcher* resource_dispatcher();
SocketStreamDispatcher* socket_stream_dispatcher() {
return socket_stream_dispatcher_.get();
@@ -83,7 +82,7 @@
// lifetime is less than the main thread.
IPC::SyncMessageFilter* sync_message_filter();
- content::ChildHistogramMessageFilter* child_histogram_message_filter() const {
+ ChildHistogramMessageFilter* child_histogram_message_filter() const {
return histogram_message_filter_.get();
}
@@ -138,7 +137,7 @@
MessageRouter router_;
// Handles resource loads for this process.
- scoped_ptr<content::ResourceDispatcher> resource_dispatcher_;
+ scoped_ptr<ResourceDispatcher> resource_dispatcher_;
// Handles SocketStream for this process.
scoped_ptr<SocketStreamDispatcher> socket_stream_dispatcher_;
@@ -153,11 +152,13 @@
scoped_ptr<QuotaDispatcher> quota_dispatcher_;
- scoped_refptr<content::ChildHistogramMessageFilter> histogram_message_filter_;
+ scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_;
base::WeakPtrFactory<ChildThread> channel_connected_factory_;
DISALLOW_COPY_AND_ASSIGN(ChildThread);
};
+} // namespace content
+
#endif // CONTENT_COMMON_CHILD_THREAD_H_
« no previous file with comments | « content/common/child_process.cc ('k') | content/common/child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698