| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 // TODO(jam): this is a temporary getter until all the code is transitioned | 176 // TODO(jam): this is a temporary getter until all the code is transitioned |
| 177 // to using RenderFrame instead of RenderView. | 177 // to using RenderFrame instead of RenderView. |
| 178 RenderViewImpl* render_view() { return render_view_.get(); } | 178 RenderViewImpl* render_view() { return render_view_.get(); } |
| 179 | 179 |
| 180 RendererWebCookieJarImpl* cookie_jar() { return &cookie_jar_; } | 180 RendererWebCookieJarImpl* cookie_jar() { return &cookie_jar_; } |
| 181 | 181 |
| 182 // Returns the RenderWidget associated with this frame. | 182 // Returns the RenderWidget associated with this frame. |
| 183 RenderWidget* GetRenderWidget(); | 183 RenderWidget* GetRenderWidget(); |
| 184 | 184 |
| 185 DevToolsAgent* devtools_agent() { return devtools_agent_; } | |
| 186 | |
| 187 // This is called right after creation with the WebLocalFrame for this | 185 // This is called right after creation with the WebLocalFrame for this |
| 188 // RenderFrame. It must be called before Initialize. | 186 // RenderFrame. It must be called before Initialize. |
| 189 void SetWebFrame(blink::WebLocalFrame* web_frame); | 187 void SetWebFrame(blink::WebLocalFrame* web_frame); |
| 190 | 188 |
| 191 // 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 |
| 192 // 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 |
| 193 // spot. | 191 // spot. |
| 194 void Initialize(); | 192 void Initialize(); |
| 195 | 193 |
| 196 // Notifications from RenderWidget. | 194 // Notifications from RenderWidget. |
| 197 void WasHidden(); | 195 void WasHidden(); |
| 198 void WasShown(); | 196 void WasShown(); |
| 199 void WidgetWillClose(); | |
| 200 | 197 |
| 201 // Start/Stop loading notifications. | 198 // Start/Stop loading notifications. |
| 202 // TODO(nasko): Those are page-level methods at this time and come from | 199 // TODO(nasko): Those are page-level methods at this time and come from |
| 203 // WebViewClient. We should move them to be WebFrameClient calls and put | 200 // WebViewClient. We should move them to be WebFrameClient calls and put |
| 204 // logic in the browser side to balance starts/stops. | 201 // logic in the browser side to balance starts/stops. |
| 205 // |to_different_document| will be true unless the load is a fragment | 202 // |to_different_document| will be true unless the load is a fragment |
| 206 // navigation, or triggered by history.pushState/replaceState. | 203 // navigation, or triggered by history.pushState/replaceState. |
| 207 virtual void didStartLoading(bool to_different_document); | 204 virtual void didStartLoading(bool to_different_document); |
| 208 virtual void didStopLoading(); | 205 virtual void didStopLoading(); |
| 209 virtual void didChangeLoadProgress(double load_progress); | 206 virtual void didChangeLoadProgress(double load_progress); |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 #endif | 913 #endif |
| 917 | 914 |
| 918 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 915 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 919 | 916 |
| 920 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 917 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 921 }; | 918 }; |
| 922 | 919 |
| 923 } // namespace content | 920 } // namespace content |
| 924 | 921 |
| 925 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 922 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |