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

Side by Side Diff: content/child/quota_message_filter.h

Issue 20015002: Make Platform::queryStorageUsageAndQuota work from worker threads (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_CHILD_QUOTA_MESSAGE_FILTER_H_
6 #define CONTENT_CHILD_QUOTA_MESSAGE_FILTER_H_
7
8 #include "ipc/ipc_channel_proxy.h"
9
10 namespace base {
11 class MessageLoopProxy;
12 }
13
14 namespace content {
15
16 class ThreadSafeSender;
17
18 class QuotaMessageFilter : public IPC::ChannelProxy::MessageFilter {
19 public:
20 explicit QuotaMessageFilter(ThreadSafeSender* thread_safe_sender);
21
22 // IPC::Listener implementation.
23 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
24
25 protected:
26 virtual ~QuotaMessageFilter();
27
28 private:
29 void DispatchMessage(const IPC::Message& msg);
30
31 scoped_refptr<base::MessageLoopProxy> main_thread_loop_proxy_;
32 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
33
34 DISALLOW_COPY_AND_ASSIGN(QuotaMessageFilter);
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_CHILD_QUOTA_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698