| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "blimp/client/session/assignment_source.h" | 5 #include "blimp/client/session/assignment_source.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
| 12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/numerics/safe_conversions.h" | 15 #include "base/numerics/safe_conversions.h" |
| 16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 17 #include "base/task_runner_util.h" | 17 #include "base/task_runner_util.h" |
| 18 #include "base/threading/thread_restrictions.h" | 18 #include "base/threading/thread_restrictions.h" |
| 19 #include "base/values.h" | 19 #include "base/values.h" |
| 20 #include "blimp/client/app/blimp_client_switches.h" | 20 #include "blimp/client/core/blimp_client_switches.h" |
| 21 #include "blimp/common/get_client_token.h" | 21 #include "blimp/common/get_client_token.h" |
| 22 #include "blimp/common/protocol_version.h" | 22 #include "blimp/common/protocol_version.h" |
| 23 #include "components/safe_json/safe_json_parser.h" | 23 #include "components/safe_json/safe_json_parser.h" |
| 24 #include "net/base/ip_address.h" | 24 #include "net/base/ip_address.h" |
| 25 #include "net/base/ip_endpoint.h" | 25 #include "net/base/ip_endpoint.h" |
| 26 #include "net/base/load_flags.h" | 26 #include "net/base/load_flags.h" |
| 27 #include "net/base/net_errors.h" | 27 #include "net/base/net_errors.h" |
| 28 #include "net/http/http_status_code.h" | 28 #include "net/http/http_status_code.h" |
| 29 #include "net/proxy/proxy_config_service.h" | 29 #include "net/proxy/proxy_config_service.h" |
| 30 #include "net/proxy/proxy_service.h" | 30 #include "net/proxy/proxy_service.h" |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 } | 372 } |
| 373 | 373 |
| 374 void AssignmentSource::OnJsonParseError(const std::string& error) { | 374 void AssignmentSource::OnJsonParseError(const std::string& error) { |
| 375 DLOG(ERROR) << "Error while parsing assigner JSON: " << error; | 375 DLOG(ERROR) << "Error while parsing assigner JSON: " << error; |
| 376 base::ResetAndReturn(&callback_) | 376 base::ResetAndReturn(&callback_) |
| 377 .Run(AssignmentSource::Result::RESULT_BAD_RESPONSE, Assignment()); | 377 .Run(AssignmentSource::Result::RESULT_BAD_RESPONSE, Assignment()); |
| 378 } | 378 } |
| 379 | 379 |
| 380 } // namespace client | 380 } // namespace client |
| 381 } // namespace blimp | 381 } // namespace blimp |
| OLD | NEW |