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

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

Issue 225903006: PPAPI: Run clang_format.py on content/renderer/pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 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 namespace ppapi { 12 namespace ppapi {
13 class PpapiPermissions; 13 class PpapiPermissions;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 class PepperInstanceStateAccessor; 17 class PepperInstanceStateAccessor;
18 class RendererPpapiHostImpl; 18 class RendererPpapiHostImpl;
19 class RenderViewImpl; 19 class RenderViewImpl;
20 20
21 class ContentRendererPepperHostFactory : public ppapi::host::HostFactory { 21 class ContentRendererPepperHostFactory : public ppapi::host::HostFactory {
22 public: 22 public:
23 explicit ContentRendererPepperHostFactory( 23 explicit ContentRendererPepperHostFactory(RendererPpapiHostImpl* host);
24 RendererPpapiHostImpl* host);
25 virtual ~ContentRendererPepperHostFactory(); 24 virtual ~ContentRendererPepperHostFactory();
26 25
27 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( 26 virtual scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost(
28 ppapi::host::PpapiHost* host, 27 ppapi::host::PpapiHost* host,
29 const ppapi::proxy::ResourceMessageCallParams& params, 28 const ppapi::proxy::ResourceMessageCallParams& params,
30 PP_Instance instance, 29 PP_Instance instance,
31 const IPC::Message& message) OVERRIDE; 30 const IPC::Message& message) OVERRIDE;
32 31
33 private: 32 private:
34 const ppapi::PpapiPermissions& GetPermissions() const; 33 const ppapi::PpapiPermissions& GetPermissions() const;
35 34
36 // Non-owning pointer. 35 // Non-owning pointer.
37 RendererPpapiHostImpl* host_; 36 RendererPpapiHostImpl* host_;
38 37
39 DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory); 38 DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory);
40 }; 39 };
41 40
42 } // namespace content 41 } // namespace content
43 42
44 #endif // CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_ 43 #endif // CONTENT_RENDERER_PEPPER_CONTENT_RENDERER_PEPPER_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/content_decryptor_delegate.cc ('k') | content/renderer/pepper/content_renderer_pepper_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698