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

Side by Side Diff: content/shell/test_runner/gc_controller.h

Issue 2923053002: Move MainWorldScriptContext accessor/method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Rebasing... Created 3 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SHELL_TEST_RUNNER_GC_CONTROLLER_H_ 5 #ifndef CONTENT_SHELL_TEST_RUNNER_GC_CONTROLLER_H_
6 #define CONTENT_SHELL_TEST_RUNNER_GC_CONTROLLER_H_ 6 #define CONTENT_SHELL_TEST_RUNNER_GC_CONTROLLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "gin/wrappable.h" 9 #include "gin/wrappable.h"
10 10
11 namespace blink { 11 namespace blink {
12 class WebFrame; 12 class WebLocalFrame;
13 } 13 }
14 14
15 namespace gin { 15 namespace gin {
16 class Arguments; 16 class Arguments;
17 } 17 }
18 18
19 namespace test_runner { 19 namespace test_runner {
20 20
21 class GCController : public gin::Wrappable<GCController> { 21 class GCController : public gin::Wrappable<GCController> {
22 public: 22 public:
23 static gin::WrapperInfo kWrapperInfo; 23 static gin::WrapperInfo kWrapperInfo;
24 static void Install(blink::WebFrame* frame); 24 static void Install(blink::WebLocalFrame* frame);
25 25
26 private: 26 private:
27 GCController(); 27 GCController();
28 ~GCController() override; 28 ~GCController() override;
29 29
30 // gin::Wrappable. 30 // gin::Wrappable.
31 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( 31 gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
32 v8::Isolate* isolate) override; 32 v8::Isolate* isolate) override;
33 33
34 void Collect(const gin::Arguments& args); 34 void Collect(const gin::Arguments& args);
35 void CollectAll(const gin::Arguments& args); 35 void CollectAll(const gin::Arguments& args);
36 void MinorCollect(const gin::Arguments& args); 36 void MinorCollect(const gin::Arguments& args);
37 37
38 DISALLOW_COPY_AND_ASSIGN(GCController); 38 DISALLOW_COPY_AND_ASSIGN(GCController);
39 }; 39 };
40 40
41 } // namespace test_runner 41 } // namespace test_runner
42 42
43 #endif // CONTENT_SHELL_TEST_RUNNER_GC_CONTROLLER_H_ 43 #endif // CONTENT_SHELL_TEST_RUNNER_GC_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/shell/test_runner/gamepad_controller.cc ('k') | content/shell/test_runner/gc_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698