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

Side by Side Diff: content/public/test/render_view_test.h

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 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
« no previous file with comments | « content/public/test/DEPS ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 11 matching lines...) Expand all
22 struct ViewMsg_Resize_Params; 22 struct ViewMsg_Resize_Params;
23 23
24 namespace blink { 24 namespace blink {
25 class WebWidget; 25 class WebWidget;
26 } 26 }
27 27
28 namespace gfx { 28 namespace gfx {
29 class Rect; 29 class Rect;
30 } 30 }
31 31
32 namespace scheduler {
33 class RendererScheduler;
34 }
35
32 namespace content { 36 namespace content {
33 class ContentBrowserClient; 37 class ContentBrowserClient;
34 class ContentClient; 38 class ContentClient;
35 class ContentRendererClient; 39 class ContentRendererClient;
36 class FakeCompositorDependencies; 40 class FakeCompositorDependencies;
37 class MockRenderProcess; 41 class MockRenderProcess;
38 class PageState; 42 class PageState;
39 class RendererMainPlatformDelegate; 43 class RendererMainPlatformDelegate;
40 class RendererBlinkPlatformImplNoSandboxImpl; 44 class RendererBlinkPlatformImplNoSandboxImpl;
41 class RendererScheduler;
42 class RenderView; 45 class RenderView;
43 46
44 class RenderViewTest : public testing::Test { 47 class RenderViewTest : public testing::Test {
45 public: 48 public:
46 // A special BlinkPlatformImpl class for getting rid off the dependency to the 49 // A special BlinkPlatformImpl class for getting rid off the dependency to the
47 // sandbox, which is not available in RenderViewTest. 50 // sandbox, which is not available in RenderViewTest.
48 class RendererBlinkPlatformImplNoSandbox { 51 class RendererBlinkPlatformImplNoSandbox {
49 public: 52 public:
50 RendererBlinkPlatformImplNoSandbox(); 53 RendererBlinkPlatformImplNoSandbox();
51 ~RendererBlinkPlatformImplNoSandbox(); 54 ~RendererBlinkPlatformImplNoSandbox();
52 blink::Platform* Get(); 55 blink::Platform* Get();
53 56
54 private: 57 private:
55 scoped_ptr<RendererScheduler> renderer_scheduler_; 58 scoped_ptr<scheduler::RendererScheduler> renderer_scheduler_;
56 scoped_ptr<RendererBlinkPlatformImplNoSandboxImpl> blink_platform_impl_; 59 scoped_ptr<RendererBlinkPlatformImplNoSandboxImpl> blink_platform_impl_;
57 }; 60 };
58 61
59 RenderViewTest(); 62 RenderViewTest();
60 ~RenderViewTest() override; 63 ~RenderViewTest() override;
61 64
62 protected: 65 protected:
63 // Spins the message loop to process all messages that are currently pending. 66 // Spins the message loop to process all messages that are currently pending.
64 void ProcessPendingMessages(); 67 void ProcessPendingMessages();
65 68
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; 171 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_;
169 #endif 172 #endif
170 173
171 private: 174 private:
172 void GoToOffset(int offset, const PageState& state); 175 void GoToOffset(int offset, const PageState& state);
173 }; 176 };
174 177
175 } // namespace content 178 } // namespace content
176 179
177 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 180 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
OLDNEW
« no previous file with comments | « content/public/test/DEPS ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698