Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: blimp/client/core/session/assignment_source.cc

Issue 2376573002: Cleanup blimp/client/core code organization. (Closed)
Patch Set: merged origin/master Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/strings/string_number_conversions.h" 19 #include "base/strings/string_number_conversions.h"
20 #include "base/task_runner_util.h" 20 #include "base/task_runner_util.h"
21 #include "base/threading/thread_restrictions.h" 21 #include "base/threading/thread_restrictions.h"
22 #include "base/values.h" 22 #include "base/values.h"
23 #include "blimp/client/core/blimp_client_switches.h" 23 #include "blimp/client/core/switches/blimp_client_switches.h"
24 #include "blimp/common/get_client_auth_token.h" 24 #include "blimp/common/get_client_auth_token.h"
25 #include "blimp/common/protocol_version.h" 25 #include "blimp/common/protocol_version.h"
26 #include "components/safe_json/safe_json_parser.h" 26 #include "components/safe_json/safe_json_parser.h"
27 #include "net/base/ip_address.h" 27 #include "net/base/ip_address.h"
28 #include "net/base/ip_endpoint.h" 28 #include "net/base/ip_endpoint.h"
29 #include "net/base/load_flags.h" 29 #include "net/base/load_flags.h"
30 #include "net/base/net_errors.h" 30 #include "net/base/net_errors.h"
31 #include "net/http/http_status_code.h" 31 #include "net/http/http_status_code.h"
32 #include "net/proxy/proxy_config_service.h" 32 #include "net/proxy/proxy_config_service.h"
33 #include "net/proxy/proxy_service.h" 33 #include "net/proxy/proxy_service.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 } 371 }
372 372
373 void AssignmentSource::OnJsonParseError(const std::string& error) { 373 void AssignmentSource::OnJsonParseError(const std::string& error) {
374 DLOG(ERROR) << "Error while parsing assigner JSON: " << error; 374 DLOG(ERROR) << "Error while parsing assigner JSON: " << error;
375 base::ResetAndReturn(&callback_) 375 base::ResetAndReturn(&callback_)
376 .Run(ASSIGNMENT_REQUEST_RESULT_BAD_RESPONSE, Assignment()); 376 .Run(ASSIGNMENT_REQUEST_RESULT_BAD_RESPONSE, Assignment());
377 } 377 }
378 378
379 } // namespace client 379 } // namespace client
380 } // namespace blimp 380 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/session/BUILD.gn ('k') | blimp/client/core/session/assignment_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698