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

Side by Side Diff: content/test/test_render_frame_host_factory.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TEST_TEST_RENDER_FRAME_HOST_FACTORY_H_ 5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_HOST_FACTORY_H_
6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_FACTORY_H_ 6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_FACTORY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
11
10 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
11 #include "base/macros.h" 13 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "content/browser/frame_host/render_frame_host_factory.h" 14 #include "content/browser/frame_host/render_frame_host_factory.h"
14 15
15 namespace content { 16 namespace content {
16 17
17 // Manages creation of the RenderFrameHostImpls; when registered, all created 18 // Manages creation of the RenderFrameHostImpls; when registered, all created
18 // RenderFrameHostsImpls will be TestRenderFrameHosts. This 19 // RenderFrameHostsImpls will be TestRenderFrameHosts. This
19 // automatically registers itself when it goes in scope, and unregisters itself 20 // automatically registers itself when it goes in scope, and unregisters itself
20 // when it goes out of scope. Since you can't have more than one factory 21 // when it goes out of scope. Since you can't have more than one factory
21 // registered at a time, you can only have one of these objects at a time. 22 // registered at a time, you can only have one of these objects at a time.
22 class TestRenderFrameHostFactory : public RenderFrameHostFactory { 23 class TestRenderFrameHostFactory : public RenderFrameHostFactory {
23 public: 24 public:
24 TestRenderFrameHostFactory(); 25 TestRenderFrameHostFactory();
25 ~TestRenderFrameHostFactory() override; 26 ~TestRenderFrameHostFactory() override;
26 27
27 protected: 28 protected:
28 // RenderFrameHostFactory implementation. 29 // RenderFrameHostFactory implementation.
29 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost( 30 std::unique_ptr<RenderFrameHostImpl> CreateRenderFrameHost(
30 SiteInstance* site_instance, 31 SiteInstance* site_instance,
31 RenderViewHostImpl* render_view_host, 32 RenderViewHostImpl* render_view_host,
32 RenderFrameHostDelegate* delegate, 33 RenderFrameHostDelegate* delegate,
33 RenderWidgetHostDelegate* rwh_delegate, 34 RenderWidgetHostDelegate* rwh_delegate,
34 FrameTree* frame_tree, 35 FrameTree* frame_tree,
35 FrameTreeNode* frame_tree_node, 36 FrameTreeNode* frame_tree_node,
36 int32_t routing_id, 37 int32_t routing_id,
37 int32_t widget_routing_id, 38 int32_t widget_routing_id,
38 bool hidden) override; 39 bool hidden) override;
39 40
40 private: 41 private:
41 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHostFactory); 42 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHostFactory);
42 }; 43 };
43 44
44 } // namespace content 45 } // namespace content
45 46
46 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_FACTORY_H_ 47 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « content/test/test_navigation_url_loader_factory.cc ('k') | content/test/test_render_frame_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698