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

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

Issue 664963002: content: Add RendererScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Daniel and Jared's comments and move renderer_scheduler ownership to render_thread_impl Created 6 years, 1 month 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_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 17 matching lines...) Expand all
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 class ContentBrowserClient; 31 class ContentBrowserClient;
32 class ContentClient; 32 class ContentClient;
33 class ContentRendererClient; 33 class ContentRendererClient;
34 class MockRenderProcess; 34 class MockRenderProcess;
35 class PageState; 35 class PageState;
36 class RendererMainPlatformDelegate; 36 class RendererMainPlatformDelegate;
37 class RendererBlinkPlatformImplNoSandboxImpl; 37 class RendererBlinkPlatformImplNoSandboxImpl;
38 class RendererScheduler;
38 class RenderView; 39 class RenderView;
39 40
40 class RenderViewTest : public testing::Test { 41 class RenderViewTest : public testing::Test {
41 public: 42 public:
42 // A special BlinkPlatformImpl class for getting rid off the dependency to the 43 // A special BlinkPlatformImpl class for getting rid off the dependency to the
43 // sandbox, which is not available in RenderViewTest. 44 // sandbox, which is not available in RenderViewTest.
44 class RendererBlinkPlatformImplNoSandbox { 45 class RendererBlinkPlatformImplNoSandbox {
45 public: 46 public:
46 RendererBlinkPlatformImplNoSandbox(); 47 RendererBlinkPlatformImplNoSandbox();
47 ~RendererBlinkPlatformImplNoSandbox(); 48 ~RendererBlinkPlatformImplNoSandbox();
48 blink::Platform* Get(); 49 blink::Platform* Get();
49 50
50 private: 51 private:
52 scoped_ptr<RendererScheduler> renderer_scheduler_;
51 scoped_ptr<RendererBlinkPlatformImplNoSandboxImpl> blink_platform_impl_; 53 scoped_ptr<RendererBlinkPlatformImplNoSandboxImpl> blink_platform_impl_;
52 }; 54 };
53 55
54 RenderViewTest(); 56 RenderViewTest();
55 ~RenderViewTest() override; 57 ~RenderViewTest() override;
56 58
57 protected: 59 protected:
58 // Spins the message loop to process all messages that are currently pending. 60 // Spins the message loop to process all messages that are currently pending.
59 void ProcessPendingMessages(); 61 void ProcessPendingMessages();
60 62
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; 158 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_;
157 #endif 159 #endif
158 160
159 private: 161 private:
160 void GoToOffset(int offset, const PageState& state); 162 void GoToOffset(int offset, const PageState& state);
161 }; 163 };
162 164
163 } // namespace content 165 } // namespace content
164 166
165 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 167 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698