[CleanUp] Use base::STLSetDifference() in place of std::set_difference()
[chromium-blink-merge.git] / ppapi / host / message_filter_host.h
blob9aa1c5bbaa41066f4e918affd34e14f713a605a9
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"
13 namespace ppapi {
14 namespace host {
16 class PpapiHost;
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 {
24 public:
25 MessageFilterHost(PpapiHost* host,
26 PP_Instance instance,
27 PP_Resource resource,
28 const scoped_refptr<ResourceMessageFilter>& message_filter);
29 virtual ~MessageFilterHost();
31 private:
32 DISALLOW_COPY_AND_ASSIGN(MessageFilterHost);
35 } // namespace host
36 } // namespace ppapi
38 #endif // PPAPI_HOST_MESSAGE_FILTER_HOST_H_