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

Unified Diff: chrome/renderer/extensions/console.h

Issue 234413005: Move most of ChromeV8Context to a base ScriptContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: factor feature_channel out of module_system Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/extensions/chrome_v8_extension.h ('k') | chrome/renderer/extensions/console.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/console.h
diff --git a/chrome/renderer/extensions/console.h b/chrome/renderer/extensions/console.h
deleted file mode 100644
index a1a6e287b92078149577b13068eaf96a206c4e41..0000000000000000000000000000000000000000
--- a/chrome/renderer/extensions/console.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_RENDERER_EXTENSIONS_CONSOLE_H_
-#define CHROME_RENDERER_EXTENSIONS_CONSOLE_H_
-
-#include <string>
-
-#include "content/public/common/console_message_level.h"
-#include "v8/include/v8.h"
-
-namespace content {
-class RenderView;
-}
-
-namespace extensions {
-
-// Utility for logging messages to RenderViews.
-namespace console {
-
-// Adds |message| to the console of |render_view| at various log levels.
-void Debug(content::RenderView* render_view, const std::string& message);
-void Log(content::RenderView* render_view, const std::string& message);
-void Warn(content::RenderView* render_view, const std::string& message);
-void Error(content::RenderView* render_view, const std::string& message);
-
-// Logs an Error then crashes the current process.
-void Fatal(content::RenderView* render_view, const std::string& message);
-
-void AddMessage(content::RenderView* render_view,
- content::ConsoleMessageLevel level,
- const std::string& message);
-
-// Adds |message| to the console that hosts |context|, if any.
-void Debug(v8::Handle<v8::Context> context, const std::string& message);
-void Log(v8::Handle<v8::Context> context, const std::string& message);
-void Warn(v8::Handle<v8::Context> context, const std::string& message);
-void Error(v8::Handle<v8::Context> context, const std::string& message);
-
-// Logs an Error then crashes the current process.
-void Fatal(v8::Handle<v8::Context> context, const std::string& message);
-
-void AddMessage(v8::Handle<v8::Context> context,
- content::ConsoleMessageLevel level,
- const std::string& message);
-
-// Returns a new v8::Object with each standard log method (Debug/Log/Warn/Error)
-// bound to respective debug/log/warn/error methods. This is a direct drop-in
-// replacement for the standard devtools console.* methods usually accessible
-// from JS.
-v8::Local<v8::Object> AsV8Object();
-
-} // namespace console
-
-} // namespace extensions
-
-#endif // CHROME_RENDERER_EXTENSIONS_CONSOLE_H_
« no previous file with comments | « chrome/renderer/extensions/chrome_v8_extension.h ('k') | chrome/renderer/extensions/console.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698