[Android] Added UMA for search by image context menu.
[chromium-blink-merge.git] / chrome / renderer / pepper / chrome_renderer_pepper_host_factory.h
blob0dfba8610d1a37bf0f5f7ba5efb2a0bca198f091
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 CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_
6 #define CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ppapi/host/host_factory.h"
12 namespace content {
13 class RendererPpapiHost;
16 namespace chrome {
18 class ChromeRendererPepperHostFactory : public ppapi::host::HostFactory {
19 public:
20 explicit ChromeRendererPepperHostFactory(content::RendererPpapiHost* host);
21 virtual ~ChromeRendererPepperHostFactory();
23 // HostFactory.
24 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost(
25 ppapi::host::PpapiHost* host,
26 const ppapi::proxy::ResourceMessageCallParams& params,
27 PP_Instance instance,
28 const IPC::Message& message) OVERRIDE;
30 private:
31 // Not owned by this object.
32 content::RendererPpapiHost* host_;
34 DISALLOW_COPY_AND_ASSIGN(ChromeRendererPepperHostFactory);
37 } // namespace chrome
39 #endif // CHROME_RENDERER_PEPPER_CHROME_RENDERER_PEPPER_HOST_FACTORY_H_