| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // "\n at function_name (source:line_number:column_number)"). | 92 // "\n at function_name (source:line_number:column_number)"). |
| 93 virtual void DetailedConsoleMessageAdded(const base::string16& message, | 93 virtual void DetailedConsoleMessageAdded(const base::string16& message, |
| 94 const base::string16& source, | 94 const base::string16& source, |
| 95 const base::string16& stack_trace, | 95 const base::string16& stack_trace, |
| 96 int32 line_number, | 96 int32 line_number, |
| 97 int32 severity_level) {} | 97 int32 severity_level) {} |
| 98 | 98 |
| 99 // Called when a compositor frame has committed. | 99 // Called when a compositor frame has committed. |
| 100 virtual void DidCommitCompositorFrame() {} | 100 virtual void DidCommitCompositorFrame() {} |
| 101 | 101 |
| 102 // Notifications when |PerformanceTiming| data becomes available |
| 103 virtual void DidChangePerformanceTiming() {} |
| 104 |
| 102 // Called when the focused node has changed to |node|. | 105 // Called when the focused node has changed to |node|. |
| 103 virtual void FocusedNodeChanged(const blink::WebNode& node) {} | 106 virtual void FocusedNodeChanged(const blink::WebNode& node) {} |
| 104 | 107 |
| 105 // IPC::Listener implementation. | 108 // IPC::Listener implementation. |
| 106 bool OnMessageReceived(const IPC::Message& message) override; | 109 bool OnMessageReceived(const IPC::Message& message) override; |
| 107 | 110 |
| 108 // IPC::Sender implementation. | 111 // IPC::Sender implementation. |
| 109 bool Send(IPC::Message* message) override; | 112 bool Send(IPC::Message* message) override; |
| 110 | 113 |
| 111 RenderFrame* render_frame() const; | 114 RenderFrame* render_frame() const; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 125 RenderFrame* render_frame_; | 128 RenderFrame* render_frame_; |
| 126 // The routing ID of the associated RenderFrame. | 129 // The routing ID of the associated RenderFrame. |
| 127 int routing_id_; | 130 int routing_id_; |
| 128 | 131 |
| 129 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 132 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
| 130 }; | 133 }; |
| 131 | 134 |
| 132 } // namespace content | 135 } // namespace content |
| 133 | 136 |
| 134 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 137 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
| OLD | NEW |