| 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 "chrome/service/cloud_print/cloud_print_connector.h" | 5 #include "chrome/service/cloud_print/cloud_print_connector.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/md5.h" | 9 #include "base/md5.h" |
| 10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
| 11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
| 13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chrome/common/cloud_print/cloud_print_constants.h" | 16 #include "chrome/common/cloud_print/cloud_print_constants.h" |
| 17 #include "chrome/common/cloud_print/cloud_print_helpers.h" | 17 #include "chrome/common/cloud_print/cloud_print_helpers.h" |
| 18 #include "chrome/service/cloud_print/cloud_print_helpers.h" | 18 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" |
| 19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
| 20 #include "net/base/mime_util.h" | 20 #include "net/base/mime_util.h" |
| 21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
| 22 | 22 |
| 23 namespace cloud_print { | 23 namespace cloud_print { |
| 24 | 24 |
| 25 CloudPrintConnector::CloudPrintConnector(Client* client, | 25 CloudPrintConnector::CloudPrintConnector(Client* client, |
| 26 const ConnectorSettings& settings) | 26 const ConnectorSettings& settings) |
| 27 : client_(client), | 27 : client_(client), |
| 28 next_response_handler_(NULL), | 28 next_response_handler_(NULL), |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 kCloudPrintAPIMaxRetryCount, mime_type, post_data, | 642 kCloudPrintAPIMaxRetryCount, mime_type, post_data, |
| 643 &CloudPrintConnector::HandleRegisterPrinterResponse); | 643 &CloudPrintConnector::HandleRegisterPrinterResponse); |
| 644 } | 644 } |
| 645 | 645 |
| 646 bool CloudPrintConnector::IsSamePrinter(const std::string& name1, | 646 bool CloudPrintConnector::IsSamePrinter(const std::string& name1, |
| 647 const std::string& name2) const { | 647 const std::string& name2) const { |
| 648 return (0 == base::strcasecmp(name1.c_str(), name2.c_str())); | 648 return (0 == base::strcasecmp(name1.c_str(), name2.c_str())); |
| 649 } | 649 } |
| 650 | 650 |
| 651 } // namespace cloud_print | 651 } // namespace cloud_print |
| OLD | NEW |