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

Side by Side Diff: content/renderer/gpu/gpu_benchmarking_extension.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
« no previous file with comments | « content/renderer/gin_browsertest.cc ('k') | content/renderer/gpu/gpu_benchmarking_extension.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_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ 5 #ifndef CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_
6 #define CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ 6 #define CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_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 v8 { 19 namespace v8 {
20 class Isolate; 20 class Isolate;
21 class Object; 21 class Object;
22 } 22 }
23 23
24 namespace content { 24 namespace content {
25 25
26 // gin class for gpu benchmarking 26 // gin class for gpu benchmarking
27 class GpuBenchmarking : public gin::Wrappable<GpuBenchmarking> { 27 class GpuBenchmarking : public gin::Wrappable<GpuBenchmarking> {
28 public: 28 public:
29 static gin::WrapperInfo kWrapperInfo; 29 static gin::WrapperInfo kWrapperInfo;
30 static void Install(blink::WebFrame* frame); 30 static void Install(blink::WebLocalFrame* frame);
31 31
32 private: 32 private:
33 GpuBenchmarking(); 33 GpuBenchmarking();
34 ~GpuBenchmarking() override; 34 ~GpuBenchmarking() override;
35 35
36 // gin::Wrappable. 36 // gin::Wrappable.
37 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( 37 gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
38 v8::Isolate* isolate) override; 38 v8::Isolate* isolate) override;
39 39
40 // JavaScript handlers. 40 // JavaScript handlers.
(...skipping 23 matching lines...) Expand all
64 bool HasGpuChannel(); 64 bool HasGpuChannel();
65 bool HasGpuProcess(); 65 bool HasGpuProcess();
66 void GetGpuDriverBugWorkarounds(gin::Arguments* args); 66 void GetGpuDriverBugWorkarounds(gin::Arguments* args);
67 67
68 DISALLOW_COPY_AND_ASSIGN(GpuBenchmarking); 68 DISALLOW_COPY_AND_ASSIGN(GpuBenchmarking);
69 }; 69 };
70 70
71 } // namespace content 71 } // namespace content
72 72
73 #endif // CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_ 73 #endif // CONTENT_RENDERER_GPU_GPU_BENCHMARKING_EXTENSION_H_
OLDNEW
« no previous file with comments | « content/renderer/gin_browsertest.cc ('k') | content/renderer/gpu/gpu_benchmarking_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698