OLD | NEW |
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 #include "content/shell/renderer/shell_render_view_observer.h" | 5 #include "content/shell/renderer/shell_render_view_observer.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "content/public/renderer/render_view.h" | 8 #include "content/public/renderer/render_view.h" |
9 #include "content/public/renderer/render_view_observer.h" | 9 #include "content/public/renderer/render_view_observer.h" |
10 #include "content/shell/common/shell_switches.h" | 10 #include "content/shell/common/shell_switches.h" |
11 #include "third_party/WebKit/public/web/WebTestingSupport.h" | 11 #include "third_party/WebKit/public/web/WebTestingSupport.h" |
12 #include "third_party/WebKit/public/web/WebView.h" | 12 #include "third_party/WebKit/public/web/WebView.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 ShellRenderViewObserver::ShellRenderViewObserver(RenderView* render_view) | 16 ShellRenderViewObserver::ShellRenderViewObserver(RenderView* render_view) |
17 : RenderViewObserver(render_view) { | 17 : RenderViewObserver(render_view) { |
18 } | 18 } |
19 | 19 |
20 void ShellRenderViewObserver::DidClearWindowObject(WebKit::WebFrame* frame) { | 20 void ShellRenderViewObserver::DidClearWindowObject(blink::WebFrame* frame) { |
21 if (CommandLine::ForCurrentProcess()->HasSwitch( | 21 if (CommandLine::ForCurrentProcess()->HasSwitch( |
22 switches::kExposeInternalsForTesting)) { | 22 switches::kExposeInternalsForTesting)) { |
23 WebKit::WebTestingSupport::injectInternalsObject(frame); | 23 blink::WebTestingSupport::injectInternalsObject(frame); |
24 } | 24 } |
25 } | 25 } |
26 | 26 |
27 } // namespace content | 27 } // namespace content |
OLD | NEW |