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

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

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_MOCK_RENDERER_PPAPI_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/renderer/renderer_ppapi_host.h" 11 #include "content/public/renderer/renderer_ppapi_host.h"
11 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h" 12 #include "content/renderer/pepper/content_renderer_pepper_host_factory.h"
12 #include "ppapi/host/ppapi_host.h" 13 #include "ppapi/host/ppapi_host.h"
13 #include "ppapi/proxy/resource_message_test_sink.h" 14 #include "ppapi/proxy/resource_message_test_sink.h"
14 15
15 namespace content { 16 namespace content {
16 class FakePepperPluginInstance; 17 class FakePepperPluginInstance;
17 class PluginModule; 18 class PluginModule;
18 19
19 // A mock RendererPpapiHost for testing resource hosts. Messages sent by 20 // A mock RendererPpapiHost for testing resource hosts. Messages sent by
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 62
62 private: 63 private:
63 ppapi::proxy::ResourceMessageTestSink sink_; 64 ppapi::proxy::ResourceMessageTestSink sink_;
64 ppapi::host::PpapiHost ppapi_host_; 65 ppapi::host::PpapiHost ppapi_host_;
65 66
66 RenderView* render_view_; 67 RenderView* render_view_;
67 PP_Instance pp_instance_; 68 PP_Instance pp_instance_;
68 69
69 bool has_user_gesture_; 70 bool has_user_gesture_;
70 71
71 scoped_ptr<FakePepperPluginInstance> plugin_instance_; 72 std::unique_ptr<FakePepperPluginInstance> plugin_instance_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost); 74 DISALLOW_COPY_AND_ASSIGN(MockRendererPpapiHost);
74 }; 75 };
75 76
76 } // namespace content 77 } // namespace content
77 78
78 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_ 79 #endif // CONTENT_RENDERER_PEPPER_MOCK_RENDERER_PPAPI_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/host_var_tracker_unittest.cc ('k') | content/renderer/pepper/pepper_audio_encoder_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698