| 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 WillReleaseScriptContext(v8::Handle<v8::Context> context, | 58 virtual void WillReleaseScriptContext(v8::Handle<v8::Context> context, |
| 56 int world_id) {} | 59 int world_id) {} |
| 57 virtual void DidClearWindowObject() {} | 60 virtual void DidClearWindowObject() {} |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 RenderFrame* render_frame_; | 116 RenderFrame* render_frame_; |
| 114 // The routing ID of the associated RenderFrame. | 117 // The routing ID of the associated RenderFrame. |
| 115 int routing_id_; | 118 int routing_id_; |
| 116 | 119 |
| 117 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); | 120 DISALLOW_COPY_AND_ASSIGN(RenderFrameObserver); |
| 118 }; | 121 }; |
| 119 | 122 |
| 120 } // namespace content | 123 } // namespace content |
| 121 | 124 |
| 122 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ | 125 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_OBSERVER_H_ |
| OLD | NEW |