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

Side by Side Diff: content/browser/frame_host/render_frame_host_delegate.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_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const base::string16& message, 50 const base::string16& message,
51 int32 line_no, 51 int32 line_no,
52 const base::string16& source_id); 52 const base::string16& source_id);
53 53
54 // Informs the delegate whenever a RenderFrameHost is created. 54 // Informs the delegate whenever a RenderFrameHost is created.
55 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {} 55 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {}
56 56
57 // Informs the delegate whenever a RenderFrameHost is deleted. 57 // Informs the delegate whenever a RenderFrameHost is deleted.
58 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} 58 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {}
59 59
60 // The specified RenderFrame began loading a new page. This corresponds to
61 // Blink's notion of the throbber starting.
62 // |to_different_document| will be true unless the load is a fragment
63 // navigation, or triggered by history.pushState/replaceState.
64 virtual void DidStartLoading(RenderFrameHost* render_frame_host,
65 bool to_different_document) {}
66
67 // The specified RenderFrame stopped loading a page. This corresponds to
68 // Blink's notion of the throbber stopping.
69 virtual void DidStopLoading() {}
70
71 // The RenderFrameHost has been swapped out. 60 // The RenderFrameHost has been swapped out.
72 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} 61 virtual void SwappedOut(RenderFrameHost* render_frame_host) {}
73 62
74 // Notification that the navigation on the main frame is blocked waiting 63 // Notification that the navigation on the main frame is blocked waiting
75 // for transition to occur. 64 // for transition to occur.
76 virtual void DidDeferAfterResponseStarted( 65 virtual void DidDeferAfterResponseStarted(
77 const TransitionLayerData& transition_data) {} 66 const TransitionLayerData& transition_data) {}
78 67
79 // Used to query whether the navigation transition will be handled. 68 // Used to query whether the navigation transition will be handled.
80 virtual bool WillHandleDeferAfterResponseStarted(); 69 virtual bool WillHandleDeferAfterResponseStarted();
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 162 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
174 #endif 163 #endif
175 164
176 protected: 165 protected:
177 virtual ~RenderFrameHostDelegate() {} 166 virtual ~RenderFrameHostDelegate() {}
178 }; 167 };
179 168
180 } // namespace content 169 } // namespace content
181 170
182 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 171 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698