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

Side by Side Diff: content/common/child_thread.h

Issue 9368053: Move indexed db files from content/renderer to content/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix checkdeps by adding method to ChildThread Created 8 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_CHILD_THREAD_H_ 5 #ifndef CONTENT_COMMON_CHILD_THREAD_H_
6 #define CONTENT_COMMON_CHILD_THREAD_H_ 6 #define CONTENT_COMMON_CHILD_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/shared_memory.h" 11 #include "base/shared_memory.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/common/message_router.h" 13 #include "content/common/message_router.h"
14 #include "webkit/glue/resource_loader_bridge.h" 14 #include "webkit/glue/resource_loader_bridge.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
jsbell 2012/02/10 23:57:38 Nit: include ordering
dgrogan 2012/02/11 00:05:26 Moved to the .cc file, and in the proper order.
15 16
16 class FileSystemDispatcher; 17 class FileSystemDispatcher;
17 class MessageLoop; 18 class MessageLoop;
18 class QuotaDispatcher; 19 class QuotaDispatcher;
19 class ResourceDispatcher; 20 class ResourceDispatcher;
20 class SocketStreamDispatcher; 21 class SocketStreamDispatcher;
21 22
22 namespace IPC { 23 namespace IPC {
23 class SyncChannel; 24 class SyncChannel;
24 class SyncMessageFilter; 25 class SyncMessageFilter;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 73
73 // Safe to call on any thread, as long as it's guaranteed that the thread's 74 // Safe to call on any thread, as long as it's guaranteed that the thread's
74 // lifetime is less than the main thread. 75 // lifetime is less than the main thread.
75 IPC::SyncMessageFilter* sync_message_filter(); 76 IPC::SyncMessageFilter* sync_message_filter();
76 77
77 MessageLoop* message_loop(); 78 MessageLoop* message_loop();
78 79
79 // Returns the one child thread. 80 // Returns the one child thread.
80 static ChildThread* current(); 81 static ChildThread* current();
81 82
83 virtual bool IsWebFrameValid(WebKit::WebFrame* frame);
84
82 protected: 85 protected:
83 friend class ChildProcess; 86 friend class ChildProcess;
84 87
85 // Called when the process refcount is 0. 88 // Called when the process refcount is 0.
86 void OnProcessFinalRelease(); 89 void OnProcessFinalRelease();
87 90
88 virtual bool OnControlMessageReceived(const IPC::Message& msg); 91 virtual bool OnControlMessageReceived(const IPC::Message& msg);
89 virtual void OnShutdown(); 92 virtual void OnShutdown();
90 93
91 #ifdef IPC_MESSAGE_LOG_ENABLED 94 #ifdef IPC_MESSAGE_LOG_ENABLED
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 MessageLoop* message_loop_; 134 MessageLoop* message_loop_;
132 135
133 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; 136 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_;
134 137
135 scoped_ptr<QuotaDispatcher> quota_dispatcher_; 138 scoped_ptr<QuotaDispatcher> quota_dispatcher_;
136 139
137 DISALLOW_COPY_AND_ASSIGN(ChildThread); 140 DISALLOW_COPY_AND_ASSIGN(ChildThread);
138 }; 141 };
139 142
140 #endif // CONTENT_COMMON_CHILD_THREAD_H_ 143 #endif // CONTENT_COMMON_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/child_thread.cc » ('j') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698