OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/renderer_host/resource_handler.h" | 9 #include "content/browser/renderer_host/resource_handler.h" |
10 #include "net/url_request/url_request_status.h" | 10 #include "net/url_request/url_request_status.h" |
11 | 11 |
12 class ResourceDispatcherHost; | 12 class ResourceDispatcherHost; |
13 struct GlobalRequestID; | 13 struct GlobalRequestID; |
14 | 14 |
15 // Ensures that cross-site responses are delayed until the onunload handler of | 15 // Ensures that cross-site responses are delayed until the onunload handler of |
16 // the previous page is allowed to run. This handler wraps an | 16 // the previous page is allowed to run. This handler wraps an |
17 // AsyncEventHandler, and it sits inside SafeBrowsing and Buffered event | 17 // AsyncEventHandler, and it sits inside SafeBrowsing and Buffered event |
18 // handlers. This is important, so that it can intercept OnResponseStarted | 18 // handlers. This is important, so that it can intercept OnResponseStarted |
19 // after we determine that a response is safe and not a download. | 19 // after we determine that a response is safe and not a download. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 int request_id_; | 61 int request_id_; |
62 bool completed_during_transition_; | 62 bool completed_during_transition_; |
63 net::URLRequestStatus completed_status_; | 63 net::URLRequestStatus completed_status_; |
64 std::string completed_security_info_; | 64 std::string completed_security_info_; |
65 ResourceResponse* response_; | 65 ResourceResponse* response_; |
66 ResourceDispatcherHost* rdh_; | 66 ResourceDispatcherHost* rdh_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(CrossSiteResourceHandler); | 68 DISALLOW_COPY_AND_ASSIGN(CrossSiteResourceHandler); |
69 }; | 69 }; |
70 | 70 |
71 #endif // CHROME_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ | 71 #endif // CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ |
OLD | NEW |