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 27 matching lines...) Expand all Loading... |
38 // Called when a Pepper plugin is created. | 38 // Called when a Pepper plugin is created. |
39 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} | 39 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} |
40 | 40 |
41 // Called when a load is explicitly stopped by the user or browser. | 41 // Called when a load is explicitly stopped by the user or browser. |
42 virtual void OnStop() {} | 42 virtual void OnStop() {} |
43 | 43 |
44 // Called when the RenderFrame visiblity is changed. | 44 // Called when the RenderFrame visiblity is changed. |
45 virtual void WasHidden() {} | 45 virtual void WasHidden() {} |
46 virtual void WasShown() {} | 46 virtual void WasShown() {} |
47 | 47 |
| 48 // Called when associated widget is about to close. |
| 49 virtual void WidgetWillClose() {} |
| 50 |
48 // These match the Blink API notifications | 51 // These match the Blink API notifications |
49 virtual void DidCommitProvisionalLoad(bool is_new_navigation, | 52 virtual void DidCommitProvisionalLoad(bool is_new_navigation, |
50 bool is_same_page_navigation) {} | 53 bool is_same_page_navigation) {} |
51 virtual void DidStartProvisionalLoad() {} | 54 virtual void DidStartProvisionalLoad() {} |
52 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} | 55 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} |
53 virtual void DidFinishLoad() {} | 56 virtual void DidFinishLoad() {} |
54 virtual void DidFinishDocumentLoad() {} | 57 virtual void DidFinishDocumentLoad() {} |
55 virtual void DidCreateScriptContext(v8::Handle<v8::Context> context, | 58 virtual void DidCreateScriptContext(v8::Handle<v8::Context> context, |
56 int extension_group, | 59 int extension_group, |
57 int world_id) {} | 60 int world_id) {} |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 RenderFrame* render_frame_; | 119 RenderFrame* render_frame_; |
117 // The routing ID of the associated RenderFrame. | 120 // The routing ID of the associated RenderFrame. |
118 int routing_id_; | 121 int routing_id_; |
119 | 122 |
120 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 123 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
121 }; | 124 }; |
122 | 125 |
123 } // namespace content | 126 } // namespace content |
124 | 127 |
125 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 128 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
OLD | NEW |