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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
12 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
13 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
15 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
17 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
18 #include "net/base/test_completion_callback.h" | 19 #include "net/base/test_completion_callback.h" |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 | 784 |
784 // Run the message loop to let the DHCP fetch complete and post the results | 785 // Run the message loop to let the DHCP fetch complete and post the results |
785 // back. Before the fix linked to above, this would try to invoke on | 786 // back. Before the fix linked to above, this would try to invoke on |
786 // the callback object provided by ProxyScriptDecider after it was | 787 // the callback object provided by ProxyScriptDecider after it was |
787 // no longer valid. | 788 // no longer valid. |
788 base::MessageLoop::current()->RunUntilIdle(); | 789 base::MessageLoop::current()->RunUntilIdle(); |
789 } | 790 } |
790 | 791 |
791 } // namespace | 792 } // namespace |
792 } // namespace net | 793 } // namespace net |
OLD | NEW |