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
3 // found in the LICENSE file.
5 #ifndef CONTENT_SHELL_RENDERER_SHELL_RENDER_VIEW_OBSERVER_H_
6 #define CONTENT_SHELL_RENDERER_SHELL_RENDER_VIEW_OBSERVER_H_
9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/renderer/render_view_observer.h"
22 class ShellRenderViewObserver
: public RenderViewObserver
{
24 explicit ShellRenderViewObserver(RenderView
* render_view
);
25 ~ShellRenderViewObserver() override
;
29 void OnEchoPong(int id
, const std::string
& body
);
31 // RenderViewObserver implementation.
32 bool OnMessageReceived(const IPC::Message
& message
) override
;
33 void DidClearWindowObject(blink::WebLocalFrame
* frame
) override
;
35 scoped_ptr
<IPCEcho
> ipc_echo_
;
36 DISALLOW_COPY_AND_ASSIGN(ShellRenderViewObserver
);
39 } // namespace content
41 #endif // CONTENT_SHELL_RENDERER_SHELL_RENDER_VIEW_OBSERVER_H_