| 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 <errno.h> | 5 #include <errno.h> |
| 6 #include <signal.h> | 6 #include <signal.h> |
| 7 #include <sys/types.h> | 7 #include <sys/types.h> |
| 8 #include <sys/wait.h> | 8 #include <sys/wait.h> |
| 9 #include <unistd.h> | 9 #include <unistd.h> |
| 10 | 10 |
| 11 #include <cstdio> | 11 #include <cstdio> |
| 12 #include <iostream> | 12 #include <iostream> |
| 13 #include <limits> | 13 #include <limits> |
| 14 #include <string> | 14 #include <string> |
| 15 #include <utility> | 15 #include <utility> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/at_exit.h" | 18 #include "base/at_exit.h" |
| 19 #include "base/basictypes.h" | 19 #include "base/basictypes.h" |
| 20 #include "base/bind.h" | 20 #include "base/bind.h" |
| 21 #include "base/command_line.h" | 21 #include "base/command_line.h" |
| 22 #include "base/compiler_specific.h" | 22 #include "base/compiler_specific.h" |
| 23 #include "base/containers/hash_tables.h" | 23 #include "base/containers/hash_tables.h" |
| 24 #include "base/file_util.h" | |
| 25 #include "base/files/file_path.h" | 24 #include "base/files/file_path.h" |
| 25 #include "base/files/file_util.h" |
| 26 #include "base/logging.h" | 26 #include "base/logging.h" |
| 27 #include "base/memory/linked_ptr.h" | 27 #include "base/memory/linked_ptr.h" |
| 28 #include "base/memory/scoped_vector.h" | 28 #include "base/memory/scoped_vector.h" |
| 29 #include "base/memory/weak_ptr.h" | 29 #include "base/memory/weak_ptr.h" |
| 30 #include "base/pickle.h" | 30 #include "base/pickle.h" |
| 31 #include "base/safe_strerror_posix.h" | 31 #include "base/safe_strerror_posix.h" |
| 32 #include "base/strings/string_number_conversions.h" | 32 #include "base/strings/string_number_conversions.h" |
| 33 #include "base/strings/string_piece.h" | 33 #include "base/strings/string_piece.h" |
| 34 #include "base/strings/string_split.h" | 34 #include "base/strings/string_split.h" |
| 35 #include "base/strings/string_util.h" | 35 #include "base/strings/string_util.h" |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 | 451 |
| 452 return client_delegate.has_failed() || daemon_delegate.has_failed(); | 452 return client_delegate.has_failed() || daemon_delegate.has_failed(); |
| 453 } | 453 } |
| 454 | 454 |
| 455 } // namespace | 455 } // namespace |
| 456 } // namespace forwarder2 | 456 } // namespace forwarder2 |
| 457 | 457 |
| 458 int main(int argc, char** argv) { | 458 int main(int argc, char** argv) { |
| 459 return forwarder2::RunHostForwarder(argc, argv); | 459 return forwarder2::RunHostForwarder(argc, argv); |
| 460 } | 460 } |
| OLD | NEW |