| 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_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ |
| 6 #define CONTENT_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 "content/browser/renderer_host/layered_resource_handler.h" | 9 #include "content/browser/renderer_host/layered_resource_handler.h" |
| 10 #include "net/url_request/url_request_status.h" | 10 #include "net/url_request/url_request_status.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // ResourceHandler implementation: | 31 // ResourceHandler implementation: |
| 32 virtual bool OnRequestRedirected(int request_id, | 32 virtual bool OnRequestRedirected(int request_id, |
| 33 const GURL& new_url, | 33 const GURL& new_url, |
| 34 ResourceResponse* response, | 34 ResourceResponse* response, |
| 35 bool* defer) OVERRIDE; | 35 bool* defer) OVERRIDE; |
| 36 virtual bool OnResponseStarted(int request_id, | 36 virtual bool OnResponseStarted(int request_id, |
| 37 ResourceResponse* response, | 37 ResourceResponse* response, |
| 38 bool* defer) OVERRIDE; | 38 bool* defer) OVERRIDE; |
| 39 virtual bool OnReadCompleted(int request_id, | 39 virtual bool OnReadCompleted(int request_id, |
| 40 int* bytes_read, | 40 int bytes_read, |
| 41 bool* defer) OVERRIDE; | 41 bool* defer) OVERRIDE; |
| 42 virtual bool OnResponseCompleted(int request_id, | 42 virtual bool OnResponseCompleted(int request_id, |
| 43 const net::URLRequestStatus& status, | 43 const net::URLRequestStatus& status, |
| 44 const std::string& security_info) OVERRIDE; | 44 const std::string& security_info) OVERRIDE; |
| 45 | 45 |
| 46 // We can now send the response to the new renderer, which will cause | 46 // We can now send the response to the new renderer, which will cause |
| 47 // WebContentsImpl to swap in the new renderer and destroy the old one. | 47 // WebContentsImpl to swap in the new renderer and destroy the old one. |
| 48 void ResumeResponse(); | 48 void ResumeResponse(); |
| 49 | 49 |
| 50 private: | 50 private: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 68 net::URLRequestStatus completed_status_; | 68 net::URLRequestStatus completed_status_; |
| 69 std::string completed_security_info_; | 69 std::string completed_security_info_; |
| 70 ResourceResponse* response_; | 70 ResourceResponse* response_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(CrossSiteResourceHandler); | 72 DISALLOW_COPY_AND_ASSIGN(CrossSiteResourceHandler); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace content | 75 } // namespace content |
| 76 | 76 |
| 77 #endif // CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ | 77 #endif // CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ |
| OLD | NEW |