2014-04-04 18:50:38 +02:00
|
|
|
// Copyright 2014 The Chromium Embedded Framework 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 LIBCEF_RENDERER_RENDER_FRAME_OBSERVER_H_
|
|
|
|
#define LIBCEF_RENDERER_RENDER_FRAME_OBSERVER_H_
|
|
|
|
|
|
|
|
#include "content/public/renderer/render_frame_observer.h"
|
2017-09-06 23:40:58 +02:00
|
|
|
#include "services/service_manager/public/cpp/binder_registry.h"
|
2014-04-04 18:50:38 +02:00
|
|
|
|
|
|
|
namespace content {
|
|
|
|
class RenderFrame;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CefRenderFrameObserver : public content::RenderFrameObserver {
|
|
|
|
public:
|
|
|
|
explicit CefRenderFrameObserver(content::RenderFrame* render_frame);
|
2014-11-12 20:25:15 +01:00
|
|
|
~CefRenderFrameObserver() override;
|
2014-04-04 18:50:38 +02:00
|
|
|
|
2017-05-31 17:33:30 +02:00
|
|
|
// RenderFrameObserver methods:
|
2017-09-06 23:40:58 +02:00
|
|
|
void OnInterfaceRequestForFrame(
|
|
|
|
const std::string& interface_name,
|
|
|
|
mojo::ScopedMessagePipeHandle* interface_pipe) override;
|
2018-10-02 14:14:11 +02:00
|
|
|
void DidStartProvisionalLoad(blink::WebDocumentLoader* document_loader,
|
|
|
|
bool is_content_initiated) override;
|
2017-05-31 17:33:30 +02:00
|
|
|
void DidFinishLoad() override;
|
|
|
|
void FrameDetached() override;
|
|
|
|
void FrameFocused() override;
|
|
|
|
void FocusedNodeChanged(const blink::WebNode& node) override;
|
2017-07-27 01:19:27 +02:00
|
|
|
void DraggableRegionsChanged() override;
|
2015-04-20 13:11:11 +02:00
|
|
|
void DidCreateScriptContext(v8::Handle<v8::Context> context,
|
|
|
|
int world_id) override;
|
2014-11-12 20:25:15 +01:00
|
|
|
void WillReleaseScriptContext(v8::Handle<v8::Context> context,
|
|
|
|
int world_id) override;
|
2016-06-21 00:59:23 +02:00
|
|
|
void OnDestruct() override;
|
2014-04-04 18:50:38 +02:00
|
|
|
|
2017-09-06 23:40:58 +02:00
|
|
|
service_manager::BinderRegistry* registry() { return ®istry_; }
|
|
|
|
|
2014-04-04 18:50:38 +02:00
|
|
|
private:
|
2017-09-06 23:40:58 +02:00
|
|
|
service_manager::BinderRegistry registry_;
|
|
|
|
|
2014-04-04 18:50:38 +02:00
|
|
|
DISALLOW_COPY_AND_ASSIGN(CefRenderFrameObserver);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LIBCEF_RENDERER_RENDER_FRAME_OBSERVER_H_
|