| 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 #include <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/cross_site_resource_handler.h" | 7 #include "content/browser/renderer_host/cross_site_resource_handler.h" |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 11 #include "content/browser/renderer_host/render_view_host_impl.h" | 12 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 12 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" | 13 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" |
| 13 #include "content/browser/renderer_host/resource_request_info_impl.h" | 14 #include "content/browser/renderer_host/resource_request_info_impl.h" |
| 14 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/public/browser/global_request_id.h" | 16 #include "content/public/browser/global_request_id.h" |
| 16 #include "content/public/browser/render_view_host_delegate.h" | |
| 17 #include "content/public/common/resource_response.h" | 17 #include "content/public/common/resource_response.h" |
| 18 #include "net/base/io_buffer.h" | 18 #include "net/base/io_buffer.h" |
| 19 #include "net/http/http_response_headers.h" | 19 #include "net/http/http_response_headers.h" |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 void OnCrossSiteResponseHelper(int render_process_id, | 25 void OnCrossSiteResponseHelper(int render_process_id, |
| 26 int render_view_id, | 26 int render_view_id, |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 &OnCrossSiteResponseHelper, | 234 &OnCrossSiteResponseHelper, |
| 235 render_process_host_id_, | 235 render_process_host_id_, |
| 236 render_view_id_, | 236 render_view_id_, |
| 237 request_id)); | 237 request_id)); |
| 238 | 238 |
| 239 // TODO(creis): If the above call should fail, then we need to notify the IO | 239 // TODO(creis): If the above call should fail, then we need to notify the IO |
| 240 // thread to proceed anyway, using ResourceDispatcherHost::OnClosePageACK. | 240 // thread to proceed anyway, using ResourceDispatcherHost::OnClosePageACK. |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace content | 243 } // namespace content |
| OLD | NEW |