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

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

Issue 2831033002: Use unique_ptr for Platform::CreateURLLoader (Closed)
Patch Set: Created 3 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_BLINK_WEB_UNIT_TEST_SUPPORT_H_ 5 #ifndef CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_
6 #define CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ 6 #define CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 23 matching lines...) Expand all
34 class TestBlinkWebUnitTestSupport : public BlinkPlatformImpl { 34 class TestBlinkWebUnitTestSupport : public BlinkPlatformImpl {
35 public: 35 public:
36 TestBlinkWebUnitTestSupport(); 36 TestBlinkWebUnitTestSupport();
37 ~TestBlinkWebUnitTestSupport() override; 37 ~TestBlinkWebUnitTestSupport() override;
38 38
39 blink::WebBlobRegistry* GetBlobRegistry() override; 39 blink::WebBlobRegistry* GetBlobRegistry() override;
40 blink::WebClipboard* Clipboard() override; 40 blink::WebClipboard* Clipboard() override;
41 blink::WebFileUtilities* GetFileUtilities() override; 41 blink::WebFileUtilities* GetFileUtilities() override;
42 blink::WebIDBFactory* IdbFactory() override; 42 blink::WebIDBFactory* IdbFactory() override;
43 43
44 blink::WebURLLoader* CreateURLLoader() override; 44 std::unique_ptr<blink::WebURLLoader> CreateURLLoader() override;
45 blink::WebString UserAgent() override; 45 blink::WebString UserAgent() override;
46 blink::WebString QueryLocalizedString( 46 blink::WebString QueryLocalizedString(
47 blink::WebLocalizedString::Name name) override; 47 blink::WebLocalizedString::Name name) override;
48 blink::WebString QueryLocalizedString(blink::WebLocalizedString::Name name, 48 blink::WebString QueryLocalizedString(blink::WebLocalizedString::Name name,
49 const blink::WebString& value) override; 49 const blink::WebString& value) override;
50 blink::WebString QueryLocalizedString( 50 blink::WebString QueryLocalizedString(
51 blink::WebLocalizedString::Name name, 51 blink::WebLocalizedString::Name name,
52 const blink::WebString& value1, 52 const blink::WebString& value1,
53 const blink::WebString& value2) override; 53 const blink::WebString& value2) override;
54 blink::WebString DefaultLocale() override; 54 blink::WebString DefaultLocale() override;
(...skipping 28 matching lines...) Expand all
83 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_; 83 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_;
84 std::unique_ptr<blink::WebThread> web_thread_; 84 std::unique_ptr<blink::WebThread> web_thread_;
85 std::unique_ptr<cc::TestSharedBitmapManager> shared_bitmap_manager_; 85 std::unique_ptr<cc::TestSharedBitmapManager> shared_bitmap_manager_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(TestBlinkWebUnitTestSupport); 87 DISALLOW_COPY_AND_ASSIGN(TestBlinkWebUnitTestSupport);
88 }; 88 };
89 89
90 } // namespace content 90 } // namespace content
91 91
92 #endif // CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_ 92 #endif // CONTENT_TEST_TEST_BLINK_WEB_UNIT_TEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698