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/core/session/assignment_source.h" | 5 #include "blimp/client/core/session/assignment_source.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/json/json_reader.h" | 14 #include "base/json/json_reader.h" |
15 #include "base/json/json_writer.h" | 15 #include "base/json/json_writer.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/numerics/safe_conversions.h" | 18 #include "base/numerics/safe_conversions.h" |
| 19 #include "base/single_thread_task_runner.h" |
19 #include "base/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
20 #include "base/task_runner_util.h" | 21 #include "base/task_runner_util.h" |
21 #include "base/threading/thread_restrictions.h" | 22 #include "base/threading/thread_restrictions.h" |
22 #include "base/values.h" | 23 #include "base/values.h" |
23 #include "blimp/client/core/switches/blimp_client_switches.h" | 24 #include "blimp/client/core/switches/blimp_client_switches.h" |
24 #include "blimp/common/get_client_auth_token.h" | 25 #include "blimp/common/get_client_auth_token.h" |
25 #include "blimp/common/protocol_version.h" | 26 #include "blimp/common/protocol_version.h" |
26 #include "components/safe_json/safe_json_parser.h" | 27 #include "components/safe_json/safe_json_parser.h" |
27 #include "net/base/ip_address.h" | 28 #include "net/base/ip_address.h" |
28 #include "net/base/ip_endpoint.h" | 29 #include "net/base/ip_endpoint.h" |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 } | 375 } |
375 | 376 |
376 void AssignmentSource::OnJsonParseError(const std::string& error) { | 377 void AssignmentSource::OnJsonParseError(const std::string& error) { |
377 DLOG(ERROR) << "Error while parsing assigner JSON: " << error; | 378 DLOG(ERROR) << "Error while parsing assigner JSON: " << error; |
378 base::ResetAndReturn(&callback_) | 379 base::ResetAndReturn(&callback_) |
379 .Run(ASSIGNMENT_REQUEST_RESULT_BAD_RESPONSE, Assignment()); | 380 .Run(ASSIGNMENT_REQUEST_RESULT_BAD_RESPONSE, Assignment()); |
380 } | 381 } |
381 | 382 |
382 } // namespace client | 383 } // namespace client |
383 } // namespace blimp | 384 } // namespace blimp |
OLD | NEW |