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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 void SetWebFrame(blink::WebLocalFrame* web_frame); | 187 void SetWebFrame(blink::WebLocalFrame* web_frame); |
188 | 188 |
189 // This method must be called after the frame has been added to the frame | 189 // This method must be called after the frame has been added to the frame |
190 // tree. It creates all objects that depend on the frame being at its proper | 190 // tree. It creates all objects that depend on the frame being at its proper |
191 // spot. | 191 // spot. |
192 void Initialize(); | 192 void Initialize(); |
193 | 193 |
194 // Notifications from RenderWidget. | 194 // Notifications from RenderWidget. |
195 void WasHidden(); | 195 void WasHidden(); |
196 void WasShown(); | 196 void WasShown(); |
| 197 void WidgetWillClose(); |
197 | 198 |
198 // Start/Stop loading notifications. | 199 // Start/Stop loading notifications. |
199 // TODO(nasko): Those are page-level methods at this time and come from | 200 // TODO(nasko): Those are page-level methods at this time and come from |
200 // WebViewClient. We should move them to be WebFrameClient calls and put | 201 // WebViewClient. We should move them to be WebFrameClient calls and put |
201 // logic in the browser side to balance starts/stops. | 202 // logic in the browser side to balance starts/stops. |
202 // |to_different_document| will be true unless the load is a fragment | 203 // |to_different_document| will be true unless the load is a fragment |
203 // navigation, or triggered by history.pushState/replaceState. | 204 // navigation, or triggered by history.pushState/replaceState. |
204 virtual void didStartLoading(bool to_different_document); | 205 virtual void didStartLoading(bool to_different_document); |
205 virtual void didStopLoading(); | 206 virtual void didStopLoading(); |
206 virtual void didChangeLoadProgress(double load_progress); | 207 virtual void didChangeLoadProgress(double load_progress); |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 #endif | 912 #endif |
912 | 913 |
913 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 914 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
914 | 915 |
915 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 916 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
916 }; | 917 }; |
917 | 918 |
918 } // namespace content | 919 } // namespace content |
919 | 920 |
920 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 921 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |