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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 // These match the Blink API notifications | 42 // These match the Blink API notifications |
43 virtual void DidCommitProvisionalLoad(bool is_new_navigation) {} | 43 virtual void DidCommitProvisionalLoad(bool is_new_navigation) {} |
44 virtual void DidStartProvisionalLoad() {} | 44 virtual void DidStartProvisionalLoad() {} |
45 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} | 45 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} |
46 virtual void DidFinishLoad() {} | 46 virtual void DidFinishLoad() {} |
47 virtual void DidFinishDocumentLoad() {} | 47 virtual void DidFinishDocumentLoad() {} |
48 virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context, | 48 virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context, |
49 int world_id) {} | 49 int world_id) {} |
50 virtual void DidClearWindowObject() {} | 50 virtual void DidClearWindowObject() {} |
| 51 virtual void DidChangeName(const base::string16& name) {} |
51 | 52 |
52 // Called when we receive a console message from Blink for which we requested | 53 // Called when we receive a console message from Blink for which we requested |
53 // extra details (like the stack trace). |message| is the error message, | 54 // extra details (like the stack trace). |message| is the error message, |
54 // |source| is the Blink-reported source of the error (either external or | 55 // |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 | 56 // internal), and |stack_trace| is the stack trace of the error in a |
56 // human-readable format (each frame is formatted as | 57 // human-readable format (each frame is formatted as |
57 // "\n at function_name (source:line_number:column_number)"). | 58 // "\n at function_name (source:line_number:column_number)"). |
58 virtual void DetailedConsoleMessageAdded(const base::string16& message, | 59 virtual void DetailedConsoleMessageAdded(const base::string16& message, |
59 const base::string16& source, | 60 const base::string16& source, |
60 const base::string16& stack_trace, | 61 const base::string16& stack_trace, |
(...skipping 23 matching lines...) Expand all Loading... |
84 RenderFrame* render_frame_; | 85 RenderFrame* render_frame_; |
85 // The routing ID of the associated RenderFrame. | 86 // The routing ID of the associated RenderFrame. |
86 int routing_id_; | 87 int routing_id_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 89 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
89 }; | 90 }; |
90 | 91 |
91 } // namespace content | 92 } // namespace content |
92 | 93 |
93 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 94 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
OLD | NEW |