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

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: remove TransitionLayerData in unit tests 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
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/common/mojo/service_registry_impl.h" 17 #include "content/common/mojo/service_registry_impl.h"
18 #include "content/public/browser/render_frame_host.h" 18 #include "content/public/browser/render_frame_host.h"
19 #include "content/public/common/javascript_message_type.h" 19 #include "content/public/common/javascript_message_type.h"
20 #include "content/public/common/page_transition_types.h" 20 #include "content/public/common/page_transition_types.h"
21 #include "net/http/http_response_headers.h"
21 #include "third_party/WebKit/public/web/WebTextDirection.h" 22 #include "third_party/WebKit/public/web/WebTextDirection.h"
22 23
23 class GURL; 24 class GURL;
24 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; 25 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params;
25 struct FrameHostMsg_OpenURL_Params; 26 struct FrameHostMsg_OpenURL_Params;
26 struct FrameHostMsg_BeginNavigation_Params; 27 struct FrameHostMsg_BeginNavigation_Params;
27 struct FrameMsg_Navigate_Params; 28 struct FrameMsg_Navigate_Params;
28 29
29 namespace base { 30 namespace base {
30 class FilePath; 31 class FilePath;
31 class ListValue; 32 class ListValue;
32 } 33 }
33 34
34 namespace content { 35 namespace content {
35 36
36 class CrossProcessFrameConnector; 37 class CrossProcessFrameConnector;
37 class CrossSiteTransferringRequest; 38 class CrossSiteTransferringRequest;
38 class FrameTree; 39 class FrameTree;
39 class FrameTreeNode; 40 class FrameTreeNode;
40 class RenderFrameHostDelegate; 41 class RenderFrameHostDelegate;
41 class RenderFrameProxyHost; 42 class RenderFrameProxyHost;
42 class RenderProcessHost; 43 class RenderProcessHost;
43 class RenderViewHostImpl; 44 class RenderViewHostImpl;
44 class RenderWidgetHostImpl; 45 class RenderWidgetHostImpl;
45 struct ContextMenuParams; 46 struct ContextMenuParams;
46 struct GlobalRequestID; 47 struct GlobalRequestID;
47 struct Referrer; 48 struct Referrer;
48 struct ShowDesktopNotificationHostMsgParams; 49 struct ShowDesktopNotificationHostMsgParams;
50 struct TransitionLayerData;
jochen (gone - plz use gerrit) 2014/07/24 09:05:27 not required
Zhen Wang 2014/07/24 15:29:55 Done.
49 51
50 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost { 52 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost {
51 public: 53 public:
52 static RenderFrameHostImpl* FromID(int process_id, int routing_id); 54 static RenderFrameHostImpl* FromID(int process_id, int routing_id);
53 55
54 virtual ~RenderFrameHostImpl(); 56 virtual ~RenderFrameHostImpl();
55 57
56 // RenderFrameHost 58 // RenderFrameHost
57 virtual int GetRoutingID() OVERRIDE; 59 virtual int GetRoutingID() OVERRIDE;
58 virtual SiteInstance* GetSiteInstance() OVERRIDE; 60 virtual SiteInstance* GetSiteInstance() OVERRIDE;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void OnCrossSiteResponse( 118 void OnCrossSiteResponse(
117 const GlobalRequestID& global_request_id, 119 const GlobalRequestID& global_request_id,
118 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request, 120 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request,
119 const std::vector<GURL>& transfer_url_chain, 121 const std::vector<GURL>& transfer_url_chain,
120 const Referrer& referrer, 122 const Referrer& referrer,
121 PageTransition page_transition, 123 PageTransition page_transition,
122 bool should_replace_current_entry); 124 bool should_replace_current_entry);
123 125
124 // Called on the current RenderFrameHost when the network response is first 126 // Called on the current RenderFrameHost when the network response is first
125 // receieved. 127 // receieved.
126 void OnDeferredAfterResponseStarted(const GlobalRequestID& global_request_id); 128 void OnDeferredAfterResponseStarted(
129 const GlobalRequestID& global_request_id,
130 const scoped_refptr<net::HttpResponseHeaders>& headers,
131 const GURL& url);
127 132
128 // Tells the renderer that this RenderFrame is being swapped out for one in a 133 // 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 134 // different renderer process. It should run its unload handler, move to
130 // a blank document and create a RenderFrameProxy to replace the RenderFrame. 135 // 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 136 // 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, 137 // 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). 138 // but not until WasSwappedOut is called (when it is no longer visible).
134 void SwapOut(RenderFrameProxyHost* proxy); 139 void SwapOut(RenderFrameProxyHost* proxy);
135 140
136 void OnSwappedOut(bool timed_out); 141 void OnSwappedOut(bool timed_out);
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 ServiceRegistryImpl service_registry_; 314 ServiceRegistryImpl service_registry_;
310 315
311 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 316 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
312 317
313 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 318 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
314 }; 319 };
315 320
316 } // namespace content 321 } // namespace content
317 322
318 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 323 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698