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

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: Rebase 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 int routing_id() const { return routing_id_; } 197 int routing_id() const { return routing_id_; }
198 void OnCreateChildFrame(int new_routing_id, 198 void OnCreateChildFrame(int new_routing_id,
199 const std::string& frame_name, 199 const std::string& frame_name,
200 SandboxFlags sandbox_flags); 200 SandboxFlags sandbox_flags);
201 201
202 RenderViewHostImpl* render_view_host() { return render_view_host_; } 202 RenderViewHostImpl* render_view_host() { return render_view_host_; }
203 RenderFrameHostDelegate* delegate() { return delegate_; } 203 RenderFrameHostDelegate* delegate() { return delegate_; }
204 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } 204 FrameTreeNode* frame_tree_node() { return frame_tree_node_; }
205 205
206 // Sets this RenderFrameHost's loading state.
207 void set_is_loading(bool is_loading) {
208 is_loading_ = is_loading;
209 }
210
211 // Returns this RenderFrameHost's loading state. This method is only used by 206 // Returns this RenderFrameHost's loading state. This method is only used by
212 // FrameTreeNode. The proper way to check whether a frame is loading is to 207 // FrameTreeNode. The proper way to check whether a frame is loading is to
213 // call FrameTreeNode::IsLoading. 208 // call FrameTreeNode::IsLoading.
214 bool is_loading() const { return is_loading_; } 209 bool is_loading() const { return is_loading_; }
215 210
216 // This returns the RenderFrameHost's owned RenderWidgetHost if it has one, 211 // This returns the RenderFrameHost's owned RenderWidgetHost if it has one,
217 // or else it returns nullptr. 212 // or else it returns nullptr.
218 // If the RenderFrameHost is the page's main frame, this returns instead a 213 // If the RenderFrameHost is the page's main frame, this returns instead a
219 // pointer to the RenderViewHost (which inherits RenderWidgetHost). 214 // pointer to the RenderViewHost (which inherits RenderWidgetHost).
220 RenderWidgetHostImpl* GetRenderWidgetHost(); 215 RenderWidgetHostImpl* GetRenderWidgetHost();
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 void OnAccessibilityEvents( 517 void OnAccessibilityEvents(
523 const std::vector<AccessibilityHostMsg_EventParams>& params, 518 const std::vector<AccessibilityHostMsg_EventParams>& params,
524 int reset_token); 519 int reset_token);
525 void OnAccessibilityLocationChanges( 520 void OnAccessibilityLocationChanges(
526 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); 521 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params);
527 void OnAccessibilityFindInPageResult( 522 void OnAccessibilityFindInPageResult(
528 const AccessibilityHostMsg_FindInPageResultParams& params); 523 const AccessibilityHostMsg_FindInPageResultParams& params);
529 void OnAccessibilitySnapshotResponse(int callback_id, 524 void OnAccessibilitySnapshotResponse(int callback_id,
530 const ui::AXTreeUpdate& snapshot); 525 const ui::AXTreeUpdate& snapshot);
531 void OnToggleFullscreen(bool enter_fullscreen); 526 void OnToggleFullscreen(bool enter_fullscreen);
527 void OnDidStartLoading(bool to_different_document);
528 void OnDidStopLoading();
529 void OnDidChangeLoadProgress(double load_progress);
532 530
533 #if defined(OS_MACOSX) || defined(OS_ANDROID) 531 #if defined(OS_MACOSX) || defined(OS_ANDROID)
534 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); 532 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
535 void OnHidePopup(); 533 void OnHidePopup();
536 #endif 534 #endif
537 535
538 // Registers Mojo services that this frame host makes available. 536 // Registers Mojo services that this frame host makes available.
539 void RegisterMojoServices(); 537 void RegisterMojoServices();
540 538
541 // Updates the state of this RenderFrameHost and clears any waiting state 539 // Updates the state of this RenderFrameHost and clears any waiting state
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 717
720 // NOTE: This must be the last member. 718 // NOTE: This must be the last member.
721 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 719 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
722 720
723 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 721 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
724 }; 722 };
725 723
726 } // namespace content 724 } // namespace content
727 725
728 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 726 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_delegate.h ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698