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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // These match the Blink API notifications | 46 // These match the Blink API notifications |
47 virtual void DidCommitProvisionalLoad(bool is_new_navigation) {} | 47 virtual void DidCommitProvisionalLoad(bool is_new_navigation) {} |
48 virtual void DidStartProvisionalLoad() {} | 48 virtual void DidStartProvisionalLoad() {} |
49 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} | 49 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} |
50 virtual void DidFinishLoad() {} | 50 virtual void DidFinishLoad() {} |
51 virtual void DidFinishDocumentLoad() {} | 51 virtual void DidFinishDocumentLoad() {} |
52 virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context, | 52 virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context, |
53 int world_id) {} | 53 int world_id) {} |
54 virtual void DidClearWindowObject() {} | 54 virtual void DidClearWindowObject() {} |
55 virtual void DidChangeName(const base::string16& name) {} | 55 virtual void DidChangeName(const base::string16& name) {} |
| 56 virtual void DidChangeManifest() {} |
56 | 57 |
57 // Called when the frame will soon be closed. This is the last opportunity to | 58 // Called when the frame will soon be closed. This is the last opportunity to |
58 // send messages to the host (e.g., for clean-up, shutdown, etc.). | 59 // send messages to the host (e.g., for clean-up, shutdown, etc.). |
59 virtual void FrameWillClose() {} | 60 virtual void FrameWillClose() {} |
60 | 61 |
61 // Called when we receive a console message from Blink for which we requested | 62 // Called when we receive a console message from Blink for which we requested |
62 // extra details (like the stack trace). |message| is the error message, | 63 // extra details (like the stack trace). |message| is the error message, |
63 // |source| is the Blink-reported source of the error (either external or | 64 // |source| is the Blink-reported source of the error (either external or |
64 // internal), and |stack_trace| is the stack trace of the error in a | 65 // internal), and |stack_trace| is the stack trace of the error in a |
65 // human-readable format (each frame is formatted as | 66 // human-readable format (each frame is formatted as |
(...skipping 30 matching lines...) Expand all Loading... |
96 RenderFrame* render_frame_; | 97 RenderFrame* render_frame_; |
97 // The routing ID of the associated RenderFrame. | 98 // The routing ID of the associated RenderFrame. |
98 int routing_id_; | 99 int routing_id_; |
99 | 100 |
100 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 101 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
101 }; | 102 }; |
102 | 103 |
103 } // namespace content | 104 } // namespace content |
104 | 105 |
105 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 106 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
OLD | NEW |