blob: c5469c489628bc8e68aa3bdf7927f0b5604af743 (
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
|
// Copyright (c) 2011 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 CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_
#define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_
#pragma once
#include "content/browser/renderer_host/render_view_host_observer.h"
// This class holds the Chrome specific parts of RenderViewHost, and has the
// same lifetime.
class ChromeRenderViewHostObserver : public RenderViewHostObserver {
public:
explicit ChromeRenderViewHostObserver(RenderViewHost* render_view_host);
virtual ~ChromeRenderViewHostObserver();
// RenderViewHostObserver overrides.
virtual void Navigate(const ViewMsg_Navigate_Params& params) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
private:
void OnDomOperationResponse(const std::string& json_string,
int automation_id);
DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewHostObserver);
};
#endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_VIEW_HOST_OBSERVER_H_
|