Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(977)

Side by Side Diff: chrome/service/cloud_print/cloud_print_proxy_backend.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/web_apps.cc ('k') | chrome/service/cloud_print/print_system_cups.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <map> 7 #include <map>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/rand_util.h" 14 #include "base/rand_util.h"
15 #include "base/strings/string_util.h"
15 #include "base/values.h" 16 #include "base/values.h"
16 #include "chrome/common/cloud_print/cloud_print_constants.h" 17 #include "chrome/common/cloud_print/cloud_print_constants.h"
17 #include "chrome/service/cloud_print/cloud_print_auth.h" 18 #include "chrome/service/cloud_print/cloud_print_auth.h"
18 #include "chrome/service/cloud_print/cloud_print_connector.h" 19 #include "chrome/service/cloud_print/cloud_print_connector.h"
19 #include "chrome/service/cloud_print/cloud_print_service_helpers.h" 20 #include "chrome/service/cloud_print/cloud_print_service_helpers.h"
20 #include "chrome/service/cloud_print/cloud_print_token_store.h" 21 #include "chrome/service/cloud_print/cloud_print_token_store.h"
21 #include "chrome/service/cloud_print/connector_settings.h" 22 #include "chrome/service/cloud_print/connector_settings.h"
22 #include "chrome/service/net/service_url_request_context_getter.h" 23 #include "chrome/service/net/service_url_request_context_getter.h"
23 #include "chrome/service/service_process.h" 24 #include "chrome/service/service_process.h"
24 #include "components/cloud_devices/common/cloud_devices_switches.h" 25 #include "components/cloud_devices/common/cloud_devices_switches.h"
25 #include "google_apis/gaia/gaia_oauth_client.h" 26 #include "google_apis/gaia/gaia_oauth_client.h"
26 #include "google_apis/gaia/gaia_urls.h" 27 #include "google_apis/gaia/gaia_urls.h"
27 #include "grit/generated_resources.h"
28 #include "jingle/notifier/base/notifier_options.h" 28 #include "jingle/notifier/base/notifier_options.h"
29 #include "jingle/notifier/listener/push_client.h" 29 #include "jingle/notifier/listener/push_client.h"
30 #include "jingle/notifier/listener/push_client_observer.h" 30 #include "jingle/notifier/listener/push_client_observer.h"
31 #include "ui/base/l10n/l10n_util.h"
32 #include "url/gurl.h" 31 #include "url/gurl.h"
33 32
34 namespace cloud_print { 33 namespace cloud_print {
35 34
36 // The real guts of CloudPrintProxyBackend, to keep the public client API clean. 35 // The real guts of CloudPrintProxyBackend, to keep the public client API clean.
37 class CloudPrintProxyBackend::Core 36 class CloudPrintProxyBackend::Core
38 : public base::RefCountedThreadSafe<CloudPrintProxyBackend::Core>, 37 : public base::RefCountedThreadSafe<CloudPrintProxyBackend::Core>,
39 public CloudPrintAuth::Client, 38 public CloudPrintAuth::Client,
40 public CloudPrintConnector::Client, 39 public CloudPrintConnector::Client,
41 public notifier::PushClientObserver { 40 public notifier::PushClientObserver {
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 HandlePrinterNotification(notification.data); 557 HandlePrinterNotification(notification.data);
559 } 558 }
560 559
561 void CloudPrintProxyBackend::Core::OnPingResponse() { 560 void CloudPrintProxyBackend::Core::OnPingResponse() {
562 UMA_HISTOGRAM_COUNTS_100("CloudPrint.XmppPingTry", pending_xmpp_pings_); 561 UMA_HISTOGRAM_COUNTS_100("CloudPrint.XmppPingTry", pending_xmpp_pings_);
563 pending_xmpp_pings_ = 0; 562 pending_xmpp_pings_ = 0;
564 VLOG(1) << "CP_CONNECTOR: Ping response received."; 563 VLOG(1) << "CP_CONNECTOR: Ping response received.";
565 } 564 }
566 565
567 } // namespace cloud_print 566 } // namespace cloud_print
OLDNEW
« no previous file with comments | « chrome/renderer/web_apps.cc ('k') | chrome/service/cloud_print/print_system_cups.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698