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 "chrome/renderer/extensions/extension_frame_helper.h" | 5 #include "chrome/renderer/extensions/extension_frame_helper.h" |
6 | 6 |
7 #include "chrome/common/extensions/extension_messages.h" | |
8 #include "chrome/renderer/extensions/console.h" | 7 #include "chrome/renderer/extensions/console.h" |
9 #include "chrome/renderer/extensions/dispatcher.h" | 8 #include "chrome/renderer/extensions/dispatcher.h" |
10 #include "content/public/renderer/render_frame.h" | 9 #include "content/public/renderer/render_frame.h" |
| 10 #include "extensions/common/extension_messages.h" |
11 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 11 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
12 #include "third_party/WebKit/public/web/WebFrame.h" | 12 #include "third_party/WebKit/public/web/WebFrame.h" |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 ExtensionFrameHelper::ExtensionFrameHelper(content::RenderFrame* render_frame, | 16 ExtensionFrameHelper::ExtensionFrameHelper(content::RenderFrame* render_frame, |
17 Dispatcher* extension_dispatcher) | 17 Dispatcher* extension_dispatcher) |
18 : content::RenderFrameObserver(render_frame), | 18 : content::RenderFrameObserver(render_frame), |
19 content::RenderFrameObserverTracker<ExtensionFrameHelper>(render_frame), | 19 content::RenderFrameObserverTracker<ExtensionFrameHelper>(render_frame), |
20 extension_dispatcher_(extension_dispatcher) {} | 20 extension_dispatcher_(extension_dispatcher) {} |
(...skipping 18 matching lines...) Expand all Loading... |
39 return handled; | 39 return handled; |
40 } | 40 } |
41 | 41 |
42 void ExtensionFrameHelper::OnAddMessageToConsole( | 42 void ExtensionFrameHelper::OnAddMessageToConsole( |
43 content::ConsoleMessageLevel level, | 43 content::ConsoleMessageLevel level, |
44 const std::string& message) { | 44 const std::string& message) { |
45 console::AddMessage(render_frame()->GetRenderView(), level, message); | 45 console::AddMessage(render_frame()->GetRenderView(), level, message); |
46 } | 46 } |
47 | 47 |
48 } // namespace extensions | 48 } // namespace extensions |
OLD | NEW |