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 <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
11 | 11 |
12 #include "base/base64.h" | 12 #include "base/base64.h" |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/json/json_string_value_serializer.h" | 16 #include "base/json/json_string_value_serializer.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
| 20 #include "base/message_loop/message_loop.h" |
20 #include "base/run_loop.h" | 21 #include "base/run_loop.h" |
21 #include "base/stl_util.h" | 22 #include "base/stl_util.h" |
22 #include "base/synchronization/lock.h" | 23 #include "base/synchronization/lock.h" |
23 #include "base/threading/thread_task_runner_handle.h" | 24 #include "base/threading/thread_task_runner_handle.h" |
24 #include "build/build_config.h" | 25 #include "build/build_config.h" |
25 #include "chrome/browser/browser_process.h" | 26 #include "chrome/browser/browser_process.h" |
26 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 27 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
27 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" | 28 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" |
28 #include "chrome/browser/net/predictor.h" | 29 #include "chrome/browser/net/predictor.h" |
29 #include "chrome/browser/profiles/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
(...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1565 // Second navigation to content with an img. | 1566 // Second navigation to content with an img. |
1566 std::string img_content = | 1567 std::string img_content = |
1567 "<img src=\"" + preconnect_url.spec() + "test.gif\">"; | 1568 "<img src=\"" + preconnect_url.spec() + "test.gif\">"; |
1568 NavigateToDataURLWithContent(img_content); | 1569 NavigateToDataURLWithContent(img_content); |
1569 connection_listener_->WaitUntilFirstConnectionRead(); | 1570 connection_listener_->WaitUntilFirstConnectionRead(); |
1570 EXPECT_EQ(2u, connection_listener_->GetAcceptedSocketCount()); | 1571 EXPECT_EQ(2u, connection_listener_->GetAcceptedSocketCount()); |
1571 EXPECT_EQ(1u, connection_listener_->GetReadSocketCount()); | 1572 EXPECT_EQ(1u, connection_listener_->GetReadSocketCount()); |
1572 } | 1573 } |
1573 | 1574 |
1574 } // namespace chrome_browser_net | 1575 } // namespace chrome_browser_net |
OLD | NEW |