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 "content/public/test/render_view_fake_resources_test.h" | 5 #include "content/public/test/render_view_fake_resources_test.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "base/process.h" | 9 #include "base/process.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
23 #include "net/base/upload_data.h" | 23 #include "net/base/upload_data.h" |
24 #include "net/http/http_response_headers.h" | 24 #include "net/http/http_response_headers.h" |
25 #include "net/url_request/url_request_status.h" | 25 #include "net/url_request/url_request_status.h" |
26 #include "third_party/WebKit/public/platform/WebString.h" | 26 #include "third_party/WebKit/public/platform/WebString.h" |
27 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 27 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 30 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
31 #include "webkit/dom_storage/dom_storage_types.h" | 31 #include "webkit/common/dom_storage/dom_storage_types.h" |
32 #include "webkit/glue/webkit_glue.h" | 32 #include "webkit/glue/webkit_glue.h" |
33 | 33 |
34 namespace content { | 34 namespace content { |
35 | 35 |
36 const int32 RenderViewFakeResourcesTest::kViewId = 5; | 36 const int32 RenderViewFakeResourcesTest::kViewId = 5; |
37 | 37 |
38 RenderViewFakeResourcesTest::RenderViewFakeResourcesTest() {} | 38 RenderViewFakeResourcesTest::RenderViewFakeResourcesTest() {} |
39 RenderViewFakeResourcesTest::~RenderViewFakeResourcesTest() {} | 39 RenderViewFakeResourcesTest::~RenderViewFakeResourcesTest() {} |
40 | 40 |
41 bool RenderViewFakeResourcesTest::OnMessageReceived( | 41 bool RenderViewFakeResourcesTest::OnMessageReceived( |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 params.url = GURL(history_item.urlString()); | 214 params.url = GURL(history_item.urlString()); |
215 params.transition = PAGE_TRANSITION_FORWARD_BACK; | 215 params.transition = PAGE_TRANSITION_FORWARD_BACK; |
216 params.page_state = HistoryItemToPageState(history_item); | 216 params.page_state = HistoryItemToPageState(history_item); |
217 params.navigation_type = ViewMsg_Navigate_Type::NORMAL; | 217 params.navigation_type = ViewMsg_Navigate_Type::NORMAL; |
218 params.request_time = base::Time::Now(); | 218 params.request_time = base::Time::Now(); |
219 channel_->Send(new ViewMsg_Navigate(impl->routing_id(), params)); | 219 channel_->Send(new ViewMsg_Navigate(impl->routing_id(), params)); |
220 message_loop_.Run(); | 220 message_loop_.Run(); |
221 } | 221 } |
222 | 222 |
223 } // namespace content | 223 } // namespace content |
OLD | NEW |