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/string_split.h" | |
12 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
13 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/string_split.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/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_helpers.h" |
19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 | 21 |
22 namespace cloud_print { | 22 namespace cloud_print { |
23 | 23 |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 post_data, | 560 post_data, |
561 &CloudPrintConnector::HandleRegisterPrinterResponse); | 561 &CloudPrintConnector::HandleRegisterPrinterResponse); |
562 } | 562 } |
563 | 563 |
564 bool CloudPrintConnector::IsSamePrinter(const std::string& name1, | 564 bool CloudPrintConnector::IsSamePrinter(const std::string& name1, |
565 const std::string& name2) const { | 565 const std::string& name2) const { |
566 return (0 == base::strcasecmp(name1.c_str(), name2.c_str())); | 566 return (0 == base::strcasecmp(name1.c_str(), name2.c_str())); |
567 } | 567 } |
568 | 568 |
569 } // namespace cloud_print | 569 } // namespace cloud_print |
OLD | NEW |