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_proxy_backend.h" | 5 #include "chrome/service/cloud_print/cloud_print_proxy_backend.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/bind.h" | 12 #include "base/bind.h" |
11 #include "base/command_line.h" | 13 #include "base/command_line.h" |
12 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
13 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/macros.h" |
14 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
15 #include "base/rand_util.h" | 18 #include "base/rand_util.h" |
16 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
17 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
18 #include "base/thread_task_runner_handle.h" | 21 #include "base/thread_task_runner_handle.h" |
19 #include "base/values.h" | 22 #include "base/values.h" |
20 #include "chrome/common/cloud_print/cloud_print_constants.h" | 23 #include "chrome/common/cloud_print/cloud_print_constants.h" |
21 #include "chrome/service/cloud_print/cloud_print_auth.h" | 24 #include "chrome/service/cloud_print/cloud_print_auth.h" |
22 #include "chrome/service/cloud_print/cloud_print_connector.h" | 25 #include "chrome/service/cloud_print/cloud_print_connector.h" |
23 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" | 26 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" |
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 HandlePrinterNotification(notification.data); | 558 HandlePrinterNotification(notification.data); |
556 } | 559 } |
557 | 560 |
558 void CloudPrintProxyBackend::Core::OnPingResponse() { | 561 void CloudPrintProxyBackend::Core::OnPingResponse() { |
559 UMA_HISTOGRAM_COUNTS_100("CloudPrint.XmppPingTry", pending_xmpp_pings_); | 562 UMA_HISTOGRAM_COUNTS_100("CloudPrint.XmppPingTry", pending_xmpp_pings_); |
560 pending_xmpp_pings_ = 0; | 563 pending_xmpp_pings_ = 0; |
561 VLOG(1) << "CP_CONNECTOR: Ping response received."; | 564 VLOG(1) << "CP_CONNECTOR: Ping response received."; |
562 } | 565 } |
563 | 566 |
564 } // namespace cloud_print | 567 } // namespace cloud_print |
OLD | NEW |