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/console.h" | 5 #include "chrome/renderer/extensions/console.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/debug/alias.h" | 8 #include "base/debug/alias.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/string_util.h" | 10 #include "base/strings/string_util.h" |
11 #include "base/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "chrome/renderer/extensions/dispatcher.h" | 13 #include "chrome/renderer/extensions/dispatcher.h" |
14 #include "chrome/renderer/extensions/extension_helper.h" | 14 #include "chrome/renderer/extensions/extension_helper.h" |
15 #include "content/public/renderer/render_view.h" | 15 #include "content/public/renderer/render_view.h" |
16 #include "content/public/renderer/render_view_visitor.h" | 16 #include "content/public/renderer/render_view_visitor.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
20 | 20 |
21 namespace extensions { | 21 namespace extensions { |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 content::RenderView* render_view = ByContextFinder::Find(context); | 142 content::RenderView* render_view = ByContextFinder::Find(context); |
143 if (!render_view) { | 143 if (!render_view) { |
144 LOG(WARNING) << "Could not log \"" << message << "\": no render view found"; | 144 LOG(WARNING) << "Could not log \"" << message << "\": no render view found"; |
145 return; | 145 return; |
146 } | 146 } |
147 AddMessage(render_view, level, message); | 147 AddMessage(render_view, level, message); |
148 } | 148 } |
149 | 149 |
150 } // namespace console | 150 } // namespace console |
151 } // namespace extensions | 151 } // namespace extensions |
OLD | NEW |