| 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 "chrome/test/chromedriver/net/net_util.h" | 5 #include "chrome/test/chromedriver/net/net_util.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | |
| 8 #include "base/bind.h" | 7 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 10 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 11 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 13 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 14 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
| 15 #include "chrome/test/chromedriver/net/url_request_context_getter.h" | 14 #include "chrome/test/chromedriver/net/url_request_context_getter.h" |
| 16 #include "net/url_request/url_fetcher.h" | 15 #include "net/url_request/url_fetcher.h" |
| 17 #include "net/url_request/url_fetcher_delegate.h" | 16 #include "net/url_request/url_fetcher_delegate.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 83 |
| 85 int NetAddress::port() const { | 84 int NetAddress::port() const { |
| 86 return port_; | 85 return port_; |
| 87 } | 86 } |
| 88 | 87 |
| 89 bool FetchUrl(const std::string& url, | 88 bool FetchUrl(const std::string& url, |
| 90 URLRequestContextGetter* getter, | 89 URLRequestContextGetter* getter, |
| 91 std::string* response) { | 90 std::string* response) { |
| 92 return SyncUrlFetcher(GURL(url), getter, response).Fetch(); | 91 return SyncUrlFetcher(GURL(url), getter, response).Fetch(); |
| 93 } | 92 } |
| OLD | NEW |