| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // |source| is the Blink-reported source of the error (either external or | 54 // |source| is the Blink-reported source of the error (either external or |
| 55 // internal), and |stack_trace| is the stack trace of the error in a | 55 // internal), and |stack_trace| is the stack trace of the error in a |
| 56 // human-readable format (each frame is formatted as | 56 // human-readable format (each frame is formatted as |
| 57 // "\n at function_name (source:line_number:column_number)"). | 57 // "\n at function_name (source:line_number:column_number)"). |
| 58 virtual void DetailedConsoleMessageAdded(const base::string16& message, | 58 virtual void DetailedConsoleMessageAdded(const base::string16& message, |
| 59 const base::string16& source, | 59 const base::string16& source, |
| 60 const base::string16& stack_trace, | 60 const base::string16& stack_trace, |
| 61 int32 line_number, | 61 int32 line_number, |
| 62 int32 severity_level) {} | 62 int32 severity_level) {} |
| 63 | 63 |
| 64 // Called when a compositor frame has committed. |
| 65 virtual void DidCommitCompositorFrame() {} |
| 66 |
| 64 // IPC::Listener implementation. | 67 // IPC::Listener implementation. |
| 65 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 68 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 66 | 69 |
| 67 // IPC::Sender implementation. | 70 // IPC::Sender implementation. |
| 68 virtual bool Send(IPC::Message* message) OVERRIDE; | 71 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 69 | 72 |
| 70 RenderFrame* render_frame() const; | 73 RenderFrame* render_frame() const; |
| 71 int routing_id() const { return routing_id_; } | 74 int routing_id() const { return routing_id_; } |
| 72 | 75 |
| 73 protected: | 76 protected: |
| (...skipping 10 matching lines...) Expand all Loading... |
| 84 RenderFrame* render_frame_; | 87 RenderFrame* render_frame_; |
| 85 // The routing ID of the associated RenderFrame. | 88 // The routing ID of the associated RenderFrame. |
| 86 int routing_id_; | 89 int routing_id_; |
| 87 | 90 |
| 88 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 91 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 } // namespace content | 94 } // namespace content |
| 92 | 95 |
| 93 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 96 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
| OLD | NEW |