OLD | NEW |
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; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 scoped_refptr<net::HttpResponseHeaders>& headers, |
| 130 const GURL& url); |
127 | 131 |
128 // Tells the renderer that this RenderFrame is being swapped out for one in a | 132 // 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 | 133 // different renderer process. It should run its unload handler, move to |
130 // a blank document and create a RenderFrameProxy to replace the RenderFrame. | 134 // 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 | 135 // 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, | 136 // 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). | 137 // but not until WasSwappedOut is called (when it is no longer visible). |
134 void SwapOut(RenderFrameProxyHost* proxy); | 138 void SwapOut(RenderFrameProxyHost* proxy); |
135 | 139 |
136 void OnSwappedOut(bool timed_out); | 140 void OnSwappedOut(bool timed_out); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 ServiceRegistryImpl service_registry_; | 313 ServiceRegistryImpl service_registry_; |
310 | 314 |
311 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 315 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
312 | 316 |
313 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 317 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
314 }; | 318 }; |
315 | 319 |
316 } // namespace content | 320 } // namespace content |
317 | 321 |
318 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 322 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |