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 | |
51 // These match the Blink API notifications | 48 // These match the Blink API notifications |
52 virtual void DidCommitProvisionalLoad(bool is_new_navigation, | 49 virtual void DidCommitProvisionalLoad(bool is_new_navigation, |
53 bool is_same_page_navigation) {} | 50 bool is_same_page_navigation) {} |
54 virtual void DidStartProvisionalLoad() {} | 51 virtual void DidStartProvisionalLoad() {} |
55 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} | 52 virtual void DidFailProvisionalLoad(const blink::WebURLError& error) {} |
56 virtual void DidFinishLoad() {} | 53 virtual void DidFinishLoad() {} |
57 virtual void DidFinishDocumentLoad() {} | 54 virtual void DidFinishDocumentLoad() {} |
58 virtual void DidCreateScriptContext(v8::Handle<v8::Context> context, | 55 virtual void DidCreateScriptContext(v8::Handle<v8::Context> context, |
59 int extension_group, | 56 int extension_group, |
60 int world_id) {} | 57 int world_id) {} |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 RenderFrame* render_frame_; | 116 RenderFrame* render_frame_; |
120 // The routing ID of the associated RenderFrame. | 117 // The routing ID of the associated RenderFrame. |
121 int routing_id_; | 118 int routing_id_; |
122 | 119 |
123 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 120 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
124 }; | 121 }; |
125 | 122 |
126 } // namespace content | 123 } // namespace content |
127 | 124 |
128 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 125 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
OLD | NEW |