#include "extensions/renderer/extensions_render_frame_observer.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h"
#include "content/public/renderer/render_frame.h"
#include "extensions/common/logging_constants.h"
#include "extensions/common/stack_frame.h"
#include "extensions/renderer/extension_frame_helper.h"
#include "third_party/blink/public/common/logging/logging_utils.h"
#include "third_party/blink/public/web/web_frame_widget.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/public/web/web_view.h"
namespace extensions {
namespace {
const char16_t kStackFrameDelimiter[] = …;
StackTrace GetStackTraceFromMessage(std::u16string* message,
const std::u16string& source,
const std::u16string& stack_trace,
int32_t line_number) { … }
}
ExtensionsRenderFrameObserver::ExtensionsRenderFrameObserver(
content::RenderFrame* render_frame,
service_manager::BinderRegistry* registry)
: … { … }
ExtensionsRenderFrameObserver::~ExtensionsRenderFrameObserver() { … }
void ExtensionsRenderFrameObserver::BindAppWindowReceiver(
mojo::PendingReceiver<mojom::AppWindow> receiver) { … }
void ExtensionsRenderFrameObserver::SetSupportsDraggableRegions(
bool supports_draggable_regions) { … }
void ExtensionsRenderFrameObserver::SetVisuallyDeemphasized(bool deemphasized) { … }
void ExtensionsRenderFrameObserver::DetailedConsoleMessageAdded(
const std::u16string& message,
const std::u16string& source,
const std::u16string& stack_trace_string,
uint32_t line_number,
blink::mojom::ConsoleMessageLevel level) { … }
void ExtensionsRenderFrameObserver::OnDestruct() { … }
}