| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/md5.h" | 12 #include "base/md5.h" |
| 13 #include "base/rand_util.h" | 13 #include "base/rand_util.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
| 17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
| 18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
| 19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
| 20 #include "base/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
| 21 #include "base/values.h" | 21 #include "base/values.h" |
| 22 #include "chrome/common/cloud_print/cloud_print_constants.h" | 22 #include "chrome/common/cloud_print/cloud_print_constants.h" |
| 23 #include "chrome/common/cloud_print/cloud_print_helpers.h" | 23 #include "chrome/common/cloud_print/cloud_print_helpers.h" |
| 24 #include "chrome/grit/generated_resources.h" | 24 #include "chrome/grit/generated_resources.h" |
| 25 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" | 25 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" |
| 26 #include "net/base/mime_util.h" | 26 #include "net/base/mime_util.h" |
| 27 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 28 | 28 |
| 29 namespace cloud_print { | 29 namespace cloud_print { |
| 30 | 30 |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 kCloudPrintAPIMaxRetryCount, mime_type, post_data, | 644 kCloudPrintAPIMaxRetryCount, mime_type, post_data, |
| 645 &CloudPrintConnector::HandleRegisterPrinterResponse); | 645 &CloudPrintConnector::HandleRegisterPrinterResponse); |
| 646 } | 646 } |
| 647 | 647 |
| 648 bool CloudPrintConnector::IsSamePrinter(const std::string& name1, | 648 bool CloudPrintConnector::IsSamePrinter(const std::string& name1, |
| 649 const std::string& name2) const { | 649 const std::string& name2) const { |
| 650 return base::EqualsCaseInsensitiveASCII(name1, name2); | 650 return base::EqualsCaseInsensitiveASCII(name1, name2); |
| 651 } | 651 } |
| 652 | 652 |
| 653 } // namespace cloud_print | 653 } // namespace cloud_print |
| OLD | NEW |