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
3 // found in the LICENSE file.
5 #ifndef PPAPI_HOST_MESSAGE_FILTER_HOST_H_
6 #define PPAPI_HOST_MESSAGE_FILTER_HOST_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h"
10 #include "ppapi/host/ppapi_host_export.h"
11 #include "ppapi/host/resource_host.h"
17 class ResourceMessageFilter
;
19 // This class is a generic ResourceHost that is composed of a single
20 // ResourceMessageFilter. There are cases where ResourceHosts only serve the
21 // purpose of passing messages onto a message filter to be handled on another
22 // thread. This class can be used as the host in those cases.
23 class PPAPI_HOST_EXPORT MessageFilterHost
: public ResourceHost
{
25 MessageFilterHost(PpapiHost
* host
,
28 const scoped_refptr
<ResourceMessageFilter
>& message_filter
);
29 virtual ~MessageFilterHost();
32 DISALLOW_COPY_AND_ASSIGN(MessageFilterHost
);
38 #endif // PPAPI_HOST_MESSAGE_FILTER_HOST_H_