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