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 // These match the Blink API notifications | 48 // These match the Blink API notifications |
49 virtual void DidCommitProvisionalLoad(bool is_new_navigation, | 49 virtual void DidCommitProvisionalLoad(bool is_new_navigation, |
50 bool is_same_page_navigation) {} | 50 bool is_same_page_navigation) {} |
51 virtual void DidStartProvisionalLoad() {} | 51 virtual void DidStartProvisionalLoad() {} |
52 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} | 52 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} |
53 virtual void DidFinishLoad() {} | 53 virtual void DidFinishLoad() {} |
54 virtual void DidFinishDocumentLoad() {} | 54 virtual void DidFinishDocumentLoad() {} |
55 virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context, | 55 virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context, |
56 int world_id) {} | 56 int world_id) {} |
57 virtual void DidClearWindowObject() {} | 57 virtual void DidClearWindowObject() {} |
58 virtual void DidChangeName(const base::string16& name) {} | |
59 virtual void DidChangeManifest() {} | 58 virtual void DidChangeManifest() {} |
60 virtual void DidChangeScrollOffset() {} | 59 virtual void DidChangeScrollOffset() {} |
61 virtual void WillSendSubmitEvent(const blink::WebFormElement& form) {} | 60 virtual void WillSendSubmitEvent(const blink::WebFormElement& form) {} |
62 virtual void WillSubmitForm(const blink::WebFormElement& form) {} | 61 virtual void WillSubmitForm(const blink::WebFormElement& form) {} |
63 | 62 |
64 // Called before FrameWillClose, when this frame has been detached from the | 63 // Called before FrameWillClose, when this frame has been detached from the |
65 // view, but has not been closed yet. This *will* be called when parent frames | 64 // view, but has not been closed yet. This *will* be called when parent frames |
66 // are closing. NB: IPCs to the browser will fail silently by the time this | 65 // are closing. NB: IPCs to the browser will fail silently by the time this |
67 // notification is sent. | 66 // notification is sent. |
68 virtual void FrameDetached() {} | 67 virtual void FrameDetached() {} |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 RenderFrame* render_frame_; | 112 RenderFrame* render_frame_; |
114 // The routing ID of the associated RenderFrame. | 113 // The routing ID of the associated RenderFrame. |
115 int routing_id_; | 114 int routing_id_; |
116 | 115 |
117 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 116 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
118 }; | 117 }; |
119 | 118 |
120 } // namespace content | 119 } // namespace content |
121 | 120 |
122 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 121 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
OLD | NEW |