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

Side by Side Diff: trunk/src/content/child/child_thread.h

Issue 21042002: Revert 214162 "Make Platform::queryStorageUsageAndQuota work fro..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | trunk/src/content/child/child_thread.cc » ('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) 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_CHILD_CHILD_THREAD_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_H_
6 #define CONTENT_CHILD_CHILD_THREAD_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 19 matching lines...) Expand all
30 30
31 namespace WebKit { 31 namespace WebKit {
32 class WebFrame; 32 class WebFrame;
33 } // namespace WebKit 33 } // namespace WebKit
34 34
35 namespace content { 35 namespace content {
36 class ChildHistogramMessageFilter; 36 class ChildHistogramMessageFilter;
37 class ChildResourceMessageFilter; 37 class ChildResourceMessageFilter;
38 class FileSystemDispatcher; 38 class FileSystemDispatcher;
39 class QuotaDispatcher; 39 class QuotaDispatcher;
40 class QuotaMessageFilter;
41 class ResourceDispatcher; 40 class ResourceDispatcher;
42 class SocketStreamDispatcher; 41 class SocketStreamDispatcher;
43 class ThreadSafeSender; 42 class ThreadSafeSender;
44 43
45 // The main thread of a child process derives from this class. 44 // The main thread of a child process derives from this class.
46 class CONTENT_EXPORT ChildThread : public IPC::Listener, public IPC::Sender { 45 class CONTENT_EXPORT ChildThread : public IPC::Listener, public IPC::Sender {
47 public: 46 public:
48 // Creates the thread. 47 // Creates the thread.
49 ChildThread(); 48 ChildThread();
50 // Used for single-process mode. 49 // Used for single-process mode.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // IPC::Sender it returns may be safely called on any thread including 105 // IPC::Sender it returns may be safely called on any thread including
107 // the main thread. 106 // the main thread.
108 ThreadSafeSender* thread_safe_sender() const { 107 ThreadSafeSender* thread_safe_sender() const {
109 return thread_safe_sender_.get(); 108 return thread_safe_sender_.get();
110 } 109 }
111 110
112 ChildHistogramMessageFilter* child_histogram_message_filter() const { 111 ChildHistogramMessageFilter* child_histogram_message_filter() const {
113 return histogram_message_filter_.get(); 112 return histogram_message_filter_.get();
114 } 113 }
115 114
116 QuotaMessageFilter* quota_message_filter() const {
117 return quota_message_filter_.get();
118 }
119
120 base::MessageLoop* message_loop() const { return message_loop_; } 115 base::MessageLoop* message_loop() const { return message_loop_; }
121 116
122 // Returns the one child thread. Can only be called on the main thread. 117 // Returns the one child thread. Can only be called on the main thread.
123 static ChildThread* current(); 118 static ChildThread* current();
124 119
125 #if defined(OS_ANDROID) 120 #if defined(OS_ANDROID)
126 // Called on Android's service thread to shutdown the main thread of this 121 // Called on Android's service thread to shutdown the main thread of this
127 // process. 122 // process.
128 static void ShutdownThread(); 123 static void ShutdownThread();
129 #endif 124 #endif
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 base::MessageLoop* message_loop_; 181 base::MessageLoop* message_loop_;
187 182
188 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_; 183 scoped_ptr<FileSystemDispatcher> file_system_dispatcher_;
189 184
190 scoped_ptr<QuotaDispatcher> quota_dispatcher_; 185 scoped_ptr<QuotaDispatcher> quota_dispatcher_;
191 186
192 scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_; 187 scoped_refptr<ChildHistogramMessageFilter> histogram_message_filter_;
193 188
194 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_; 189 scoped_refptr<ChildResourceMessageFilter> resource_message_filter_;
195 190
196 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
197
198 base::WeakPtrFactory<ChildThread> channel_connected_factory_; 191 base::WeakPtrFactory<ChildThread> channel_connected_factory_;
199 192
200 // Observes the trace event system. When tracing is enabled, optionally 193 // Observes the trace event system. When tracing is enabled, optionally
201 // starts profiling the tcmalloc heap. 194 // starts profiling the tcmalloc heap.
202 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_; 195 scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_;
203 196
204 DISALLOW_COPY_AND_ASSIGN(ChildThread); 197 DISALLOW_COPY_AND_ASSIGN(ChildThread);
205 }; 198 };
206 199
207 } // namespace content 200 } // namespace content
208 201
209 #endif // CONTENT_CHILD_CHILD_THREAD_H_ 202 #endif // CONTENT_CHILD_CHILD_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | trunk/src/content/child/child_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698