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

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

Issue 1415603018: OOPIF: Support session restore by combining/splitting frame states. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up and fix bugs Created 5 years 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 11 matching lines...) Expand all
22 #endif 22 #endif
23 23
24 class GURL; 24 class GURL;
25 25
26 namespace IPC { 26 namespace IPC {
27 class Message; 27 class Message;
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 class GeolocationServiceContext; 31 class GeolocationServiceContext;
32 class PageState;
33 class RenderFrameHost; 32 class RenderFrameHost;
34 class WakeLockServiceContext; 33 class WakeLockServiceContext;
35 class WebContents; 34 class WebContents;
36 struct AXEventNotificationDetails; 35 struct AXEventNotificationDetails;
37 struct ContextMenuParams; 36 struct ContextMenuParams;
37 struct ExplodedFrameState;
38 struct TransitionLayerData; 38 struct TransitionLayerData;
39 39
40 // An interface implemented by an object interested in knowing about the state 40 // An interface implemented by an object interested in knowing about the state
41 // of the RenderFrameHost. 41 // of the RenderFrameHost.
42 class CONTENT_EXPORT RenderFrameHostDelegate { 42 class CONTENT_EXPORT RenderFrameHostDelegate {
43 public: 43 public:
44 // This is used to give the delegate a chance to filter IPC messages. 44 // This is used to give the delegate a chance to filter IPC messages.
45 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host, 45 virtual bool OnMessageReceived(RenderFrameHost* render_frame_host,
46 const IPC::Message& message); 46 const IPC::Message& message);
47 47
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual void DidAccessInitialDocument() {} 87 virtual void DidAccessInitialDocument() {}
88 88
89 // The frame changed its window.name property. 89 // The frame changed its window.name property.
90 virtual void DidChangeName(RenderFrameHost* render_frame_host, 90 virtual void DidChangeName(RenderFrameHost* render_frame_host,
91 const std::string& name) {} 91 const std::string& name) {}
92 92
93 // The onload handler in the frame has completed. Only called for the top- 93 // The onload handler in the frame has completed. Only called for the top-
94 // level frame. 94 // level frame.
95 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {} 95 virtual void DocumentOnLoadCompleted(RenderFrameHost* render_frame_host) {}
96 96
97 // The state for the page changed and should be updated in session history. 97 // The state for the frame changed and should be updated in session history.
98 virtual void UpdateStateForFrame(RenderFrameHost* render_frame_host, 98 virtual void UpdateStateForFrame(RenderFrameHost* render_frame_host,
99 const PageState& page_state) {} 99 const ExplodedFrameState& frame_state) {}
100 100
101 // The page's title was changed and should be updated. Only called for the 101 // The page's title was changed and should be updated. Only called for the
102 // top-level frame. 102 // top-level frame.
103 virtual void UpdateTitle(RenderFrameHost* render_frame_host, 103 virtual void UpdateTitle(RenderFrameHost* render_frame_host,
104 int32 page_id, 104 int32 page_id,
105 const base::string16& title, 105 const base::string16& title,
106 base::i18n::TextDirection title_direction) {} 106 base::i18n::TextDirection title_direction) {}
107 107
108 // The page's encoding was changed and should be updated. Only called for the 108 // The page's encoding was changed and should be updated. Only called for the
109 // top-level frame. 109 // top-level frame.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 182 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
183 #endif 183 #endif
184 184
185 protected: 185 protected:
186 virtual ~RenderFrameHostDelegate() {} 186 virtual ~RenderFrameHostDelegate() {}
187 }; 187 };
188 188
189 } // namespace content 189 } // namespace content
190 190
191 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_ 191 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698