OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef EXTENSIONS_RENDERER_EXTENSIONS_RENDER_FRAME_OBSERVER_H_ | 5 #ifndef EXTENSIONS_RENDERER_EXTENSIONS_RENDER_FRAME_OBSERVER_H_ |
6 #define EXTENSIONS_RENDERER_EXTENSIONS_RENDER_FRAME_OBSERVER_H_ | 6 #define EXTENSIONS_RENDERER_EXTENSIONS_RENDER_FRAME_OBSERVER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/public/renderer/render_frame_observer.h" | 9 #include "content/public/renderer/render_frame_observer.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 // This class holds the extensions specific parts of RenderFrame, and has the | 13 // This class holds the extensions specific parts of RenderFrame, and has the |
14 // same lifetime. | 14 // same lifetime. |
15 class ExtensionsRenderFrameObserver | 15 class ExtensionsRenderFrameObserver |
16 : public content::RenderFrameObserver { | 16 : public content::RenderFrameObserver { |
17 public: | 17 public: |
18 explicit ExtensionsRenderFrameObserver( | 18 explicit ExtensionsRenderFrameObserver( |
19 content::RenderFrame* render_frame); | 19 content::RenderFrame* render_frame); |
20 virtual ~ExtensionsRenderFrameObserver(); | 20 virtual ~ExtensionsRenderFrameObserver(); |
21 | 21 |
22 private: | 22 private: |
23 // RenderFrameObserver implementation. | 23 // RenderFrameObserver implementation. |
24 virtual void DetailedConsoleMessageAdded(const base::string16& message, | 24 virtual void DetailedConsoleMessageAdded(const base::string16& message, |
25 const base::string16& source, | 25 const base::string16& source, |
26 const base::string16& stack_trace, | 26 const base::string16& stack_trace, |
27 int32 line_number, | 27 int32 line_number, |
28 int32 severity_level) OVERRIDE; | 28 int32 severity_level) override; |
29 virtual void DidChangeName(const base::string16& name) OVERRIDE; | 29 virtual void DidChangeName(const base::string16& name) override; |
30 | 30 |
31 DISALLOW_COPY_AND_ASSIGN(ExtensionsRenderFrameObserver); | 31 DISALLOW_COPY_AND_ASSIGN(ExtensionsRenderFrameObserver); |
32 }; | 32 }; |
33 | 33 |
34 } // namespace extensions | 34 } // namespace extensions |
35 | 35 |
36 #endif // EXTENSIONS_RENDERER_EXTENSIONS_RENDER_FRAME_OBSERVER_H_ | 36 #endif // EXTENSIONS_RENDERER_EXTENSIONS_RENDER_FRAME_OBSERVER_H_ |
37 | 37 |
OLD | NEW |