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

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

Issue 387703004: Navigation transitions: Parse out transition-entering-stylesheet link headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more tests on java side Created 6 years, 5 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 28 matching lines...) Expand all
39 class FrameTreeNode; 39 class FrameTreeNode;
40 class RenderFrameHostDelegate; 40 class RenderFrameHostDelegate;
41 class RenderFrameProxyHost; 41 class RenderFrameProxyHost;
42 class RenderProcessHost; 42 class RenderProcessHost;
43 class RenderViewHostImpl; 43 class RenderViewHostImpl;
44 class RenderWidgetHostImpl; 44 class RenderWidgetHostImpl;
45 struct ContextMenuParams; 45 struct ContextMenuParams;
46 struct GlobalRequestID; 46 struct GlobalRequestID;
47 struct Referrer; 47 struct Referrer;
48 struct ShowDesktopNotificationHostMsgParams; 48 struct ShowDesktopNotificationHostMsgParams;
49 struct TransitionLayerData;
49 50
50 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost { 51 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost {
51 public: 52 public:
52 static RenderFrameHostImpl* FromID(int process_id, int routing_id); 53 static RenderFrameHostImpl* FromID(int process_id, int routing_id);
53 54
54 virtual ~RenderFrameHostImpl(); 55 virtual ~RenderFrameHostImpl();
55 56
56 // RenderFrameHost 57 // RenderFrameHost
57 virtual int GetRoutingID() OVERRIDE; 58 virtual int GetRoutingID() OVERRIDE;
58 virtual SiteInstance* GetSiteInstance() OVERRIDE; 59 virtual SiteInstance* GetSiteInstance() OVERRIDE;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void OnCrossSiteResponse( 117 void OnCrossSiteResponse(
117 const GlobalRequestID& global_request_id, 118 const GlobalRequestID& global_request_id,
118 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request, 119 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request,
119 const std::vector<GURL>& transfer_url_chain, 120 const std::vector<GURL>& transfer_url_chain,
120 const Referrer& referrer, 121 const Referrer& referrer,
121 PageTransition page_transition, 122 PageTransition page_transition,
122 bool should_replace_current_entry); 123 bool should_replace_current_entry);
123 124
124 // Called on the current RenderFrameHost when the network response is first 125 // Called on the current RenderFrameHost when the network response is first
125 // receieved. 126 // receieved.
126 void OnDeferredAfterResponseStarted(const GlobalRequestID& global_request_id); 127 void OnDeferredAfterResponseStarted(
128 const GlobalRequestID& global_request_id,
129 const TransitionLayerData& transition_layer_data);
127 130
128 // Tells the renderer that this RenderFrame is being swapped out for one in a 131 // Tells the renderer that this RenderFrame is being swapped out for one in a
129 // different renderer process. It should run its unload handler, move to 132 // different renderer process. It should run its unload handler, move to
130 // a blank document and create a RenderFrameProxy to replace the RenderFrame. 133 // a blank document and create a RenderFrameProxy to replace the RenderFrame.
131 // The renderer should preserve the Proxy object until it exits, in case we 134 // The renderer should preserve the Proxy object until it exits, in case we
132 // come back. The renderer can exit if it has no other active RenderFrames, 135 // come back. The renderer can exit if it has no other active RenderFrames,
133 // but not until WasSwappedOut is called (when it is no longer visible). 136 // but not until WasSwappedOut is called (when it is no longer visible).
134 void SwapOut(RenderFrameProxyHost* proxy); 137 void SwapOut(RenderFrameProxyHost* proxy);
135 138
136 void OnSwappedOut(bool timed_out); 139 void OnSwappedOut(bool timed_out);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 ServiceRegistryImpl service_registry_; 312 ServiceRegistryImpl service_registry_;
310 313
311 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 314 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
312 315
313 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 316 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
314 }; 317 };
315 318
316 } // namespace content 319 } // namespace content
317 320
318 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 321 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698