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

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

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nullptr Created 4 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
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 "base/macros.h" 9 #include "base/macros.h"
10 #include "ppapi/host/host_factory.h" 10 #include "ppapi/host/host_factory.h"
11 #include "ppapi/shared_impl/ppapi_permissions.h" 11 #include "ppapi/shared_impl/ppapi_permissions.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14 class PpapiPermissions; 14 class PpapiPermissions;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 class PepperInstanceStateAccessor; 18 class PepperInstanceStateAccessor;
19 class RendererPpapiHostImpl; 19 class RendererPpapiHostImpl;
20 class RenderViewImpl; 20 class RenderViewImpl;
21 21
22 class ContentRendererPepperHostFactory : public ppapi::host::HostFactory { 22 class ContentRendererPepperHostFactory : public ppapi::host::HostFactory {
23 public: 23 public:
24 explicit ContentRendererPepperHostFactory(RendererPpapiHostImpl* host); 24 explicit ContentRendererPepperHostFactory(RendererPpapiHostImpl* host);
25 ~ContentRendererPepperHostFactory() override; 25 ~ContentRendererPepperHostFactory() override;
26 26
27 scoped_ptr<ppapi::host::ResourceHost> CreateResourceHost( 27 std::unique_ptr<ppapi::host::ResourceHost> CreateResourceHost(
28 ppapi::host::PpapiHost* host, 28 ppapi::host::PpapiHost* host,
29 PP_Resource resource, 29 PP_Resource resource,
30 PP_Instance instance, 30 PP_Instance instance,
31 const IPC::Message& message) override; 31 const IPC::Message& message) override;
32 32
33 private: 33 private:
34 const ppapi::PpapiPermissions& GetPermissions() const; 34 const ppapi::PpapiPermissions& GetPermissions() const;
35 35
36 // Non-owning pointer. 36 // Non-owning pointer.
37 RendererPpapiHostImpl* host_; 37 RendererPpapiHostImpl* host_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory); 39 DISALLOW_COPY_AND_ASSIGN(ContentRendererPepperHostFactory);
40 }; 40 };
41 41
42 } // namespace content 42 } // namespace content
43 43
44 #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 | « chrome/renderer/pepper/pepper_helper.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