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

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

Issue 208243019: Move SwapOut methods to RenderFrameHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Nasko's comment Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 9
10 namespace IPC { 10 namespace IPC {
(...skipping 20 matching lines...) Expand all
31 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {} 31 virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {}
32 32
33 // The top-level RenderFrame began loading a new page. This corresponds to 33 // The top-level RenderFrame began loading a new page. This corresponds to
34 // Blink's notion of the throbber starting. 34 // Blink's notion of the throbber starting.
35 virtual void DidStartLoading(RenderFrameHost* render_frame_host) {} 35 virtual void DidStartLoading(RenderFrameHost* render_frame_host) {}
36 36
37 // The top-level RenderFrame stopped loading a page. This corresponds to 37 // The top-level RenderFrame stopped loading a page. This corresponds to
38 // Blink's notion of the throbber stopping. 38 // Blink's notion of the throbber stopping.
39 virtual void DidStopLoading(RenderFrameHost* render_frame_host) {} 39 virtual void DidStopLoading(RenderFrameHost* render_frame_host) {}
40 40
41 // The RenderFrameHost has been swapped out.
42 virtual void SwappedOut(RenderFrameHost* render_frame_host) {}
43
41 // Notification that a worker process has crashed. 44 // Notification that a worker process has crashed.
42 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {} 45 virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {}
43 46
44 // A context menu should be shown, to be built using the context information 47 // A context menu should be shown, to be built using the context information
45 // provided in the supplied params. 48 // provided in the supplied params.
46 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, 49 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
47 const ContextMenuParams& params) {} 50 const ContextMenuParams& params) {}
48 51
49 // Return this object cast to a WebContents, if it is one. If the object is 52 // Return this object cast to a WebContents, if it is one. If the object is
50 // not a WebContents, returns NULL. 53 // not a WebContents, returns NULL.
51 virtual WebContents* GetAsWebContents(); 54 virtual WebContents* GetAsWebContents();
52 55
53 protected: 56 protected:
54 virtual ~RenderFrameHostDelegate() {} 57 virtual ~RenderFrameHostDelegate() {}
55 }; 58 };
56 59
57 } // namespace content 60 } // namespace content
58 61
59 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 62 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698