OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOADER_CROSS_SITE_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_CROSS_SITE_RESOURCE_HANDLER_H_ |
6 #define CONTENT_BROWSER_LOADER_CROSS_SITE_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_CROSS_SITE_RESOURCE_HANDLER_H_ |
7 | 7 |
8 #include "content/browser/loader/layered_resource_handler.h" | 8 #include "content/browser/loader/layered_resource_handler.h" |
9 #include "net/url_request/url_request_status.h" | 9 #include "net/url_request/url_request_status.h" |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const net::URLRequestStatus& status, | 42 const net::URLRequestStatus& status, |
43 const std::string& security_info) OVERRIDE; | 43 const std::string& security_info) OVERRIDE; |
44 | 44 |
45 // We can now send the response to the new renderer, which will cause | 45 // We can now send the response to the new renderer, which will cause |
46 // WebContentsImpl to swap in the new renderer and destroy the old one. | 46 // WebContentsImpl to swap in the new renderer and destroy the old one. |
47 void ResumeResponse(); | 47 void ResumeResponse(); |
48 | 48 |
49 private: | 49 private: |
50 // Prepare to render the cross-site response in a new RenderViewHost, by | 50 // Prepare to render the cross-site response in a new RenderViewHost, by |
51 // telling the old RenderViewHost to run its onunload handler. | 51 // telling the old RenderViewHost to run its onunload handler. |
52 void StartCrossSiteTransition( | 52 void StartCrossSiteTransition(int request_id, |
53 int request_id, | 53 ResourceResponse* response, |
54 ResourceResponse* response); | 54 bool should_transfer); |
55 | 55 |
56 void ResumeIfDeferred(); | 56 void ResumeIfDeferred(); |
57 | 57 |
58 int render_process_host_id_; | 58 int render_process_host_id_; |
59 int render_view_id_; | 59 int render_view_id_; |
60 net::URLRequest* request_; | 60 net::URLRequest* request_; |
61 bool has_started_response_; | 61 bool has_started_response_; |
62 bool in_cross_site_transition_; | 62 bool in_cross_site_transition_; |
63 int request_id_; | 63 int request_id_; |
64 bool completed_during_transition_; | 64 bool completed_during_transition_; |
65 bool did_defer_; | 65 bool did_defer_; |
66 net::URLRequestStatus completed_status_; | 66 net::URLRequestStatus completed_status_; |
67 std::string completed_security_info_; | 67 std::string completed_security_info_; |
68 ResourceResponse* response_; | 68 ResourceResponse* response_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(CrossSiteResourceHandler); | 70 DISALLOW_COPY_AND_ASSIGN(CrossSiteResourceHandler); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace content | 73 } // namespace content |
74 | 74 |
75 #endif // CONTENT_BROWSER_LOADER_CROSS_SITE_RESOURCE_HANDLER_H_ | 75 #endif // CONTENT_BROWSER_LOADER_CROSS_SITE_RESOURCE_HANDLER_H_ |
OLD | NEW |