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.
5 #ifndef EXTENSIONS_RENDERER_EXTENSIONS_RENDER_FRAME_OBSERVER_H_
6 #define EXTENSIONS_RENDERER_EXTENSIONS_RENDER_FRAME_OBSERVER_H_
8 #include "base/basictypes.h"
9 #include "content/public/renderer/render_frame_observer.h"
11 namespace extensions
{
13 // This class holds the extensions specific parts of RenderFrame, and has the
15 class ExtensionsRenderFrameObserver
16 : public content::RenderFrameObserver
{
18 explicit ExtensionsRenderFrameObserver(
19 content::RenderFrame
* render_frame
);
20 ~ExtensionsRenderFrameObserver() override
;
23 // RenderFrameObserver implementation.
24 void DetailedConsoleMessageAdded(const base::string16
& message
,
25 const base::string16
& source
,
26 const base::string16
& stack_trace
,
28 int32 severity_level
) override
;
29 void DidChangeName(const base::string16
& name
) override
;
31 DISALLOW_COPY_AND_ASSIGN(ExtensionsRenderFrameObserver
);
34 } // namespace extensions
36 #endif // EXTENSIONS_RENDERER_EXTENSIONS_RENDER_FRAME_OBSERVER_H_