chromium/extensions/renderer/console.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "extensions/renderer/console.h"

#include "base/compiler_specific.h"
#include "base/debug/alias.h"
#include "base/lazy_instance.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "extensions/renderer/get_script_context.h"
#include "extensions/renderer/script_context.h"
#include "extensions/renderer/script_context_set.h"
#include "extensions/renderer/v8_helpers.h"
#include "extensions/renderer/worker_thread_dispatcher.h"
#include "gin/converter.h"
#include "gin/per_isolate_data.h"
#include "third_party/blink/public/web/web_console_message.h"
#include "v8/include/v8-function-callback.h"
#include "v8/include/v8-primitive.h"
#include "v8/include/v8-template.h"

namespace extensions {
namespace console {

namespace {

// Writes |message| to stack to show up in minidump, then crashes.
void CheckWithMinidump(const std::string& message) {}

void BoundLogMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {}

gin::WrapperInfo kWrapperInfo =;

}  // namespace

void Fatal(ScriptContext* context, const std::string& message) {}

void AddMessage(ScriptContext* script_context,
                blink::mojom::ConsoleMessageLevel level,
                const std::string& message) {}

v8::Local<v8::Object> AsV8Object(v8::Isolate* isolate) {}

}  // namespace console
}  // namespace extensions