Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 1080143003: Move DidStartLoading, DidStopLoading, DidChangeLoadProgress to RFHI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 int routing_id() const { return routing_id_; } 194 int routing_id() const { return routing_id_; }
195 void OnCreateChildFrame(int new_routing_id, 195 void OnCreateChildFrame(int new_routing_id,
196 const std::string& frame_name, 196 const std::string& frame_name,
197 SandboxFlags sandbox_flags); 197 SandboxFlags sandbox_flags);
198 198
199 RenderViewHostImpl* render_view_host() { return render_view_host_; } 199 RenderViewHostImpl* render_view_host() { return render_view_host_; }
200 RenderFrameHostDelegate* delegate() { return delegate_; } 200 RenderFrameHostDelegate* delegate() { return delegate_; }
201 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } 201 FrameTreeNode* frame_tree_node() { return frame_tree_node_; }
202 202
203 // Sets this RenderFrameHost's loading state.
204 void set_is_loading(bool is_loading) {
205 is_loading_ = is_loading;
206 }
207
208 // Returns this RenderFrameHost's loading state. This method is only used by 203 // Returns this RenderFrameHost's loading state. This method is only used by
209 // FrameTreeNode. The proper way to check whether a frame is loading is to 204 // FrameTreeNode. The proper way to check whether a frame is loading is to
210 // call FrameTreeNode::IsLoading. 205 // call FrameTreeNode::IsLoading.
211 bool is_loading() const { return is_loading_; } 206 bool is_loading() const { return is_loading_; }
212 207
213 // This returns the RenderFrameHost's owned RenderWidgetHost if it has one, 208 // This returns the RenderFrameHost's owned RenderWidgetHost if it has one,
214 // or else it returns nullptr. 209 // or else it returns nullptr.
215 // If the RenderFrameHost is the page's main frame, this returns instead a 210 // If the RenderFrameHost is the page's main frame, this returns instead a
216 // pointer to the RenderViewHost (which inherits RenderWidgetHost). 211 // pointer to the RenderViewHost (which inherits RenderWidgetHost).
217 RenderWidgetHostImpl* GetRenderWidgetHost(); 212 RenderWidgetHostImpl* GetRenderWidgetHost();
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 scoped_refptr<ResourceRequestBody> body); 500 scoped_refptr<ResourceRequestBody> body);
506 void OnDispatchLoad(); 501 void OnDispatchLoad();
507 void OnAccessibilityEvents( 502 void OnAccessibilityEvents(
508 const std::vector<AccessibilityHostMsg_EventParams>& params, 503 const std::vector<AccessibilityHostMsg_EventParams>& params,
509 int reset_token); 504 int reset_token);
510 void OnAccessibilityLocationChanges( 505 void OnAccessibilityLocationChanges(
511 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); 506 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params);
512 void OnAccessibilityFindInPageResult( 507 void OnAccessibilityFindInPageResult(
513 const AccessibilityHostMsg_FindInPageResultParams& params); 508 const AccessibilityHostMsg_FindInPageResultParams& params);
514 void OnToggleFullscreen(bool enter_fullscreen); 509 void OnToggleFullscreen(bool enter_fullscreen);
510 void OnDidStartLoading(bool to_different_document);
511 void OnDidStopLoading();
512 void OnDidChangeLoadProgress(double load_progress);
515 513
516 #if defined(OS_MACOSX) || defined(OS_ANDROID) 514 #if defined(OS_MACOSX) || defined(OS_ANDROID)
517 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); 515 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
518 void OnHidePopup(); 516 void OnHidePopup();
519 #endif 517 #endif
520 518
521 // Registers Mojo services that this frame host makes available. 519 // Registers Mojo services that this frame host makes available.
522 void RegisterMojoServices(); 520 void RegisterMojoServices();
523 521
524 // Updates the state of this RenderFrameHost and clears any waiting state 522 // Updates the state of this RenderFrameHost and clears any waiting state
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 696
699 // NOTE: This must be the last member. 697 // NOTE: This must be the last member.
700 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 698 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
701 699
702 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 700 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
703 }; 701 };
704 702
705 } // namespace content 703 } // namespace content
706 704
707 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 705 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698