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

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

Issue 263973003: Move LoadProgressTracker to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweaks Created 6 years, 7 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 | Annotate | Revision Log
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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/common/javascript_message_type.h" 10 #include "content/public/common/javascript_message_type.h"
(...skipping 26 matching lines...) Expand all
37 const base::string16& message, 37 const base::string16& message,
38 int32 line_no, 38 int32 line_no,
39 const base::string16& source_id); 39 const base::string16& source_id);
40 40
41 // Informs the delegate whenever a RenderFrameHost is created. 41 // Informs the delegate whenever a RenderFrameHost is created.
42 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {} 42 virtual void RenderFrameCreated(RenderFrameHost* render_frame_host) {}
43 43
44 // Informs the delegate whenever a RenderFrameHost is deleted. 44 // Informs the delegate whenever a RenderFrameHost is deleted.
45 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} 45 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {}
46 46
47 // The top-level RenderFrame began loading a new page. This corresponds to 47 // The top-level RenderFrame began loading a new page. The presence of this
48 // Blink's notion of the throbber starting. 48 // function in RenderFrameHostDelegate is a hack to allow the RenderFrameHost
49 // |to_different_document| will be true unless the load is a fragment 49 // to force a loading spinner to show up; TODO(avi): Remove this.
nasko 2014/05/05 23:51:12 I'm not sure that this is a hack. It seems this is
Avi (use Gerrit) 2014/05/06 00:03:40 It feels unbalanced to me. At points we have to fo
50 // navigation, or triggered by history.pushState/replaceState.
51 virtual void DidStartLoading(RenderFrameHost* render_frame_host, 50 virtual void DidStartLoading(RenderFrameHost* render_frame_host,
52 bool to_different_document) {} 51 bool to_different_document) {}
53 52
54 // The top-level RenderFrame stopped loading a page. This corresponds to
55 // Blink's notion of the throbber stopping.
56 virtual void DidStopLoading(RenderFrameHost* render_frame_host) {}
57
58 // The RenderFrameHost has been swapped out. 53 // The RenderFrameHost has been swapped out.
59 virtual void SwappedOut(RenderFrameHost* render_frame_host) {} 54 virtual void SwappedOut(RenderFrameHost* render_frame_host) {}
60 55
61 // Notification that a worker process has crashed. 56 // Notification that a worker process has crashed.
62 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} 57 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {}
63 58
64 // A context menu should be shown, to be built using the context information 59 // A context menu should be shown, to be built using the context information
65 // provided in the supplied params. 60 // provided in the supplied params.
66 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, 61 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
67 const ContextMenuParams& params) {} 62 const ContextMenuParams& params) {}
(...skipping 28 matching lines...) Expand all
96 // not a WebContents, returns NULL. 91 // not a WebContents, returns NULL.
97 virtual WebContents* GetAsWebContents(); 92 virtual WebContents* GetAsWebContents();
98 93
99 protected: 94 protected:
100 virtual ~RenderFrameHostDelegate() {} 95 virtual ~RenderFrameHostDelegate() {}
101 }; 96 };
102 97
103 } // namespace content 98 } // namespace content
104 99
105 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 100 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.h » ('j') | content/browser/web_contents/web_contents_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698