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

Side by Side Diff: ppapi/host/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 PPAPI_HOST_HOST_FACTORY_H_ 5 #ifndef PPAPI_HOST_HOST_FACTORY_H_
6 #define PPAPI_HOST_HOST_FACTORY_H_ 6 #define PPAPI_HOST_HOST_FACTORY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9
9 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
11 12
12 namespace IPC { 13 namespace IPC {
13 class Message; 14 class Message;
14 } 15 }
15 16
16 namespace ppapi { 17 namespace ppapi {
17 18
18 namespace proxy { 19 namespace proxy {
19 class ResourceMessageCallParams; 20 class ResourceMessageCallParams;
20 } 21 }
21 22
22 namespace host { 23 namespace host {
23 24
24 class PpapiHost; 25 class PpapiHost;
25 class ResourceHost; 26 class ResourceHost;
26 27
27 // A host factory creates ResourceHosts for incoming create messages from 28 // 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 // the plugin. This allows us to implement the hosts at the chrome/content
29 // layer without the ppapi layer knowing about the details. 30 // layer without the ppapi layer knowing about the details.
30 class HostFactory { 31 class HostFactory {
31 public: 32 public:
32 virtual ~HostFactory() {} 33 virtual ~HostFactory() {}
33 34
34 virtual scoped_ptr<ResourceHost> CreateResourceHost( 35 virtual std::unique_ptr<ResourceHost> CreateResourceHost(
35 PpapiHost* host, 36 PpapiHost* host,
36 PP_Resource resource, 37 PP_Resource resource,
37 PP_Instance instance, 38 PP_Instance instance,
38 const IPC::Message& message) = 0; 39 const IPC::Message& message) = 0;
39 }; 40 };
40 41
41 } // namespace host 42 } // namespace host
42 } // namespace ppapi 43 } // namespace ppapi
43 44
44 #endif // PPAPI_HOST_HOST_FACTORY_H_ 45 #endif // PPAPI_HOST_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_media_stream_video_track_host.cc ('k') | ppapi/host/ppapi_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698