blob: ad5466bd189cf072f8082fa7e7b0866ab2cb75f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (c) 2012 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 CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_
#define CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_
#pragma once
#include "content/public/renderer/render_view_observer.h"
namespace content {
// This class holds the content_shell specific parts of RenderView, and has the
// same lifetime.
class ShellRenderViewObserver : public RenderViewObserver {
public:
explicit ShellRenderViewObserver(RenderView* render_view);
virtual ~ShellRenderViewObserver();
// RenderViewObserver implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
private:
// Message handlers.
void OnCaptureTextDump(bool recursive);
DISALLOW_COPY_AND_ASSIGN(ShellRenderViewObserver);
};
} // namespace content
#endif // CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_
|