1// Copyright 2014 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.
4
5#ifndef EXTENSIONS_RENDERER_EXTENSIONS_RENDER_FRAME_OBSERVER_H_
6#define EXTENSIONS_RENDERER_EXTENSIONS_RENDER_FRAME_OBSERVER_H_
7
8#include "base/basictypes.h"
9#include "content/public/renderer/render_frame_observer.h"
10
11namespace extensions {
12
13// This class holds the extensions specific parts of RenderFrame, and has the
14// same lifetime.
15class ExtensionsRenderFrameObserver
16    : public content::RenderFrameObserver {
17 public:
18  explicit ExtensionsRenderFrameObserver(
19      content::RenderFrame* render_frame);
20  virtual ~ExtensionsRenderFrameObserver();
21
22 private:
23  // RenderFrameObserver implementation.
24  virtual void DetailedConsoleMessageAdded(const base::string16& message,
25                                           const base::string16& source,
26                                           const base::string16& stack_trace,
27                                           int32 line_number,
28                                           int32 severity_level) OVERRIDE;
29  virtual void DidChangeName(const base::string16& name) OVERRIDE;
30
31  DISALLOW_COPY_AND_ASSIGN(ExtensionsRenderFrameObserver);
32};
33
34}  // namespace extensions
35
36#endif  // EXTENSIONS_RENDERER_EXTENSIONS_RENDER_FRAME_OBSERVER_H_
37
38