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_HOST_FACTORY_H_
6 #define PPAPI_HOST_HOST_FACTORY_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_resource.h"
19 class ResourceMessageCallParams
;
27 // A host factory creates ResourceHosts for incoming create messages from
28 // the plugin. This allows us to implement the hosts at the chrome/content
29 // layer without the ppapi layer knowing about the details.
32 virtual ~HostFactory() {}
34 virtual scoped_ptr
<ResourceHost
> CreateResourceHost(
38 const IPC::Message
& message
) = 0;
44 #endif // PPAPI_HOST_HOST_FACTORY_H_