OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/local_discovery/gcd_api_flow_impl.h" | 5 #include "chrome/browser/local_discovery/gcd_api_flow_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
8 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
10 #include "base/values.h" | 12 #include "base/values.h" |
11 #include "chrome/browser/local_discovery/gcd_constants.h" | 13 #include "chrome/browser/local_discovery/gcd_constants.h" |
12 #include "chrome/common/cloud_print/cloud_print_constants.h" | 14 #include "chrome/common/cloud_print/cloud_print_constants.h" |
13 #include "components/cloud_devices/common/cloud_devices_urls.h" | 15 #include "components/cloud_devices/common/cloud_devices_urls.h" |
14 #include "google_apis/gaia/google_service_auth_error.h" | 16 #include "google_apis/gaia/google_service_auth_error.h" |
15 #include "net/base/load_flags.h" | 17 #include "net/base/load_flags.h" |
16 #include "net/base/url_util.h" | 18 #include "net/base/url_util.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 105 |
104 if (!value || !value->GetAsDictionary(&dictionary_value)) { | 106 if (!value || !value->GetAsDictionary(&dictionary_value)) { |
105 request_->OnGCDAPIFlowError(ERROR_MALFORMED_RESPONSE); | 107 request_->OnGCDAPIFlowError(ERROR_MALFORMED_RESPONSE); |
106 return; | 108 return; |
107 } | 109 } |
108 | 110 |
109 request_->OnGCDAPIFlowComplete(*dictionary_value); | 111 request_->OnGCDAPIFlowComplete(*dictionary_value); |
110 } | 112 } |
111 | 113 |
112 } // namespace local_discovery | 114 } // namespace local_discovery |
OLD | NEW |