| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <unicode/ucnv.h> | 6 #include <unicode/ucnv.h> |
| 7 #include <unicode/uidna.h> | 7 #include <unicode/uidna.h> |
| 8 #include <unicode/ulocdata.h> | 8 #include <unicode/ulocdata.h> |
| 9 #include <unicode/uniset.h> | 9 #include <unicode/uniset.h> |
| 10 #include <unicode/uscript.h> | 10 #include <unicode/uscript.h> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include <fcntl.h> | 23 #include <fcntl.h> |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 #include "net/base/net_util.h" | 26 #include "net/base/net_util.h" |
| 27 | 27 |
| 28 #include "base/basictypes.h" | 28 #include "base/basictypes.h" |
| 29 #include "base/file_path.h" | 29 #include "base/file_path.h" |
| 30 #include "base/file_util.h" | 30 #include "base/file_util.h" |
| 31 #include "base/logging.h" | 31 #include "base/logging.h" |
| 32 #include "base/path_service.h" | 32 #include "base/path_service.h" |
| 33 #include "base/scoped_ptr.h" | |
| 34 #include "base/string_escape.h" | 33 #include "base/string_escape.h" |
| 35 #include "base/string_piece.h" | 34 #include "base/string_piece.h" |
| 36 #include "base/string_tokenizer.h" | 35 #include "base/string_tokenizer.h" |
| 37 #include "base/string_util.h" | 36 #include "base/string_util.h" |
| 38 #include "base/sys_string_conversions.h" | 37 #include "base/sys_string_conversions.h" |
| 39 #include "base/time.h" | 38 #include "base/time.h" |
| 40 #include "base/time_format.h" | 39 #include "base/time_format.h" |
| 41 #include "grit/net_resources.h" | 40 #include "grit/net_resources.h" |
| 42 #include "googleurl/src/gurl.h" | 41 #include "googleurl/src/gurl.h" |
| 43 #include "googleurl/src/url_canon.h" | 42 #include "googleurl/src/url_canon.h" |
| (...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 char buffer[256]; | 1034 char buffer[256]; |
| 1036 int result = gethostname(buffer, sizeof(buffer)); | 1035 int result = gethostname(buffer, sizeof(buffer)); |
| 1037 if (result != 0) { | 1036 if (result != 0) { |
| 1038 DLOG(INFO) << "gethostname() failed with " << result; | 1037 DLOG(INFO) << "gethostname() failed with " << result; |
| 1039 buffer[0] = '\0'; | 1038 buffer[0] = '\0'; |
| 1040 } | 1039 } |
| 1041 return std::string(buffer); | 1040 return std::string(buffer); |
| 1042 } | 1041 } |
| 1043 | 1042 |
| 1044 } // namespace net | 1043 } // namespace net |
| OLD | NEW |