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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // Called when associated widget is about to close. | 48 // Called when associated widget is about to close. |
49 virtual void WidgetWillClose() {} | 49 virtual void WidgetWillClose() {} |
50 | 50 |
51 // These match the Blink API notifications | 51 // These match the Blink API notifications |
52 virtual void DidCommitProvisionalLoad(bool is_new_navigation, | 52 virtual void DidCommitProvisionalLoad(bool is_new_navigation, |
53 bool is_same_page_navigation) {} | 53 bool is_same_page_navigation) {} |
54 virtual void DidStartProvisionalLoad() {} | 54 virtual void DidStartProvisionalLoad() {} |
55 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} | 55 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} |
56 virtual void DidFinishLoad() {} | 56 virtual void DidFinishLoad() {} |
57 virtual void DidFinishDocumentLoad() {} | 57 virtual void DidFinishDocumentLoad() {} |
58 virtual void DidCreateScriptContext(v8::Handle<v8::Context> context, | 58 virtual void DidCreateScriptContext(v8::Local<v8::Context> context, |
59 int extension_group, | 59 int extension_group, |
60 int world_id) {} | 60 int world_id) {} |
61 virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context, | 61 virtual void WillReleaseScriptContext(v8::Local<v8::Context> context, |
62 int world_id) {} | 62 int world_id) {} |
63 virtual void DidClearWindowObject() {} | 63 virtual void DidClearWindowObject() {} |
64 virtual void DidChangeManifest() {} | 64 virtual void DidChangeManifest() {} |
65 virtual void DidChangeDefaultPresentation() {} | 65 virtual void DidChangeDefaultPresentation() {} |
66 virtual void DidChangeScrollOffset() {} | 66 virtual void DidChangeScrollOffset() {} |
67 virtual void WillSendSubmitEvent(const blink::WebFormElement& form) {} | 67 virtual void WillSendSubmitEvent(const blink::WebFormElement& form) {} |
68 virtual void WillSubmitForm(const blink::WebFormElement& form) {} | 68 virtual void WillSubmitForm(const blink::WebFormElement& form) {} |
69 | 69 |
70 // Called before FrameWillClose, when this frame has been detached from the | 70 // Called before FrameWillClose, when this frame has been detached from the |
71 // view, but has not been closed yet. This *will* be called when parent frames | 71 // view, but has not been closed yet. This *will* be called when parent frames |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 RenderFrame* render_frame_; | 119 RenderFrame* render_frame_; |
120 // The routing ID of the associated RenderFrame. | 120 // The routing ID of the associated RenderFrame. |
121 int routing_id_; | 121 int routing_id_; |
122 | 122 |
123 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 123 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
124 }; | 124 }; |
125 | 125 |
126 } // namespace content | 126 } // namespace content |
127 | 127 |
128 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 128 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
OLD | NEW |