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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
10 #include "components/navigation_interception/intercept_navigation_resource_throt
tle.h" | 10 #include "components/navigation_interception/intercept_navigation_resource_throt
tle.h" |
11 #include "components/navigation_interception/navigation_params.h" | 11 #include "components/navigation_interception/navigation_params.h" |
12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
13 #include "content/public/browser/render_frame_host.h" | 13 #include "content/public/browser/render_frame_host.h" |
14 #include "content/public/browser/render_process_host.h" | 14 #include "content/public/browser/render_process_host.h" |
15 #include "content/public/browser/resource_context.h" | 15 #include "content/public/browser/resource_context.h" |
16 #include "content/public/browser/resource_controller.h" | 16 #include "content/public/browser/resource_controller.h" |
17 #include "content/public/browser/resource_dispatcher_host.h" | 17 #include "content/public/browser/resource_dispatcher_host.h" |
18 #include "content/public/browser/resource_dispatcher_host_delegate.h" | 18 #include "content/public/browser/resource_dispatcher_host_delegate.h" |
19 #include "content/public/browser/resource_request_info.h" | 19 #include "content/public/browser/resource_request_info.h" |
20 #include "content/public/browser/resource_throttle.h" | 20 #include "content/public/browser/resource_throttle.h" |
21 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
22 #include "content/public/browser/web_contents_delegate.h" | 22 #include "content/public/browser/web_contents_delegate.h" |
23 #include "content/public/common/page_transition_types.h" | |
24 #include "content/public/test/mock_resource_context.h" | 23 #include "content/public/test/mock_resource_context.h" |
25 #include "content/public/test/test_renderer_host.h" | 24 #include "content/public/test/test_renderer_host.h" |
26 #include "net/base/request_priority.h" | 25 #include "net/base/request_priority.h" |
27 #include "net/http/http_response_headers.h" | 26 #include "net/http/http_response_headers.h" |
28 #include "net/http/http_response_info.h" | 27 #include "net/http/http_response_info.h" |
29 #include "net/url_request/url_request.h" | 28 #include "net/url_request/url_request.h" |
30 #include "net/url_request/url_request_test_util.h" | 29 #include "net/url_request/url_request_test_util.h" |
31 #include "testing/gmock/include/gmock/gmock.h" | 30 #include "testing/gmock/include/gmock/gmock.h" |
32 #include "testing/gtest/include/gtest/gtest.h" | 31 #include "testing/gtest/include/gtest/gtest.h" |
33 | 32 |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 REDIRECT_MODE_302, | 471 REDIRECT_MODE_302, |
473 web_contents()->GetRenderViewHost()->GetProcess()->GetID(), | 472 web_contents()->GetRenderViewHost()->GetProcess()->GetID(), |
474 web_contents()->GetMainFrame()->GetRoutingID(), | 473 web_contents()->GetMainFrame()->GetRoutingID(), |
475 base::Unretained(&defer))); | 474 base::Unretained(&defer))); |
476 | 475 |
477 // Wait for the request to finish processing. | 476 // Wait for the request to finish processing. |
478 base::RunLoop().RunUntilIdle(); | 477 base::RunLoop().RunUntilIdle(); |
479 } | 478 } |
480 | 479 |
481 } // namespace navigation_interception | 480 } // namespace navigation_interception |
OLD | NEW |