OLD | NEW |
(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_ |
OLD | NEW |