Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: content/renderer/pepper/content_renderer_pepper_host_factory.h

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_
6 #define CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_ 6 #define CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/host/host_factory.h" 9 #include "ppapi/host/host_factory.h"
10 #include "ppapi/shared_impl/ppapi_permissions.h" 10 #include "ppapi/shared_impl/ppapi_permissions.h"
11 11
12 class RenderViewImpl;
13
14 namespace ppapi { 12 namespace ppapi {
15 class PpapiPermissions; 13 class PpapiPermissions;
16 } 14 }
17 15
18 namespace content { 16 namespace content {
19 17 class PepperInstanceStateAccessor;
20 class RendererPpapiHostImpl; 18 class RendererPpapiHostImpl;
21 19 class RenderViewImpl;
22 class PepperInstanceStateAccessor;
23 20
24 class ContentRendererPepperHostFactory : public ppapi::host::HostFactory { 21 class ContentRendererPepperHostFactory : public ppapi::host::HostFactory {
25 public: 22 public:
26 explicit ContentRendererPepperHostFactory( 23 explicit ContentRendererPepperHostFactory(
27 RendererPpapiHostImpl* host); 24 RendererPpapiHostImpl* host);
28 virtual ~ContentRendererPepperHostFactory(); 25 virtual ~ContentRendererPepperHostFactory();
29 26
30 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( 27 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost(
31 ppapi::host::PpapiHost* host, 28 ppapi::host::PpapiHost* host,
32 const ppapi::proxy::ResourceMessageCallParams& params, 29 const ppapi::proxy::ResourceMessageCallParams& params,
33 PP_Instance instance, 30 PP_Instance instance,
34 const IPC::Message& message) OVERRIDE; 31 const IPC::Message& message) OVERRIDE;
35 32
36 private: 33 private:
37 const ppapi::PpapiPermissions& GetPermissions() const; 34 const ppapi::PpapiPermissions& GetPermissions() const;
38 35
39 // Non-owning pointer. 36 // Non-owning pointer.
40 RendererPpapiHostImpl* host_; 37 RendererPpapiHostImpl* host_;
41 38
42 DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory); 39 DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory);
43 }; 40 };
44 41
45 } // namespace content 42 } // namespace content
46 43
47 #endif // CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_ 44 #endif // CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « content/renderer/p2p/socket_dispatcher.h ('k') | content/renderer/pepper/pepper_file_chooser_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698