OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/md5.h" | 8 #include "base/md5.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/service/cloud_print/cloud_print_consts.h" | 12 #include "chrome/service/cloud_print/cloud_print_consts.h" |
13 #include "chrome/service/cloud_print/cloud_print_helpers.h" | 13 #include "chrome/service/cloud_print/cloud_print_helpers.h" |
14 #include "chrome/service/cloud_print/printer_job_handler.h" | 14 #include "chrome/service/cloud_print/printer_job_handler.h" |
15 #include "chrome/common/net/notifier/listener/mediator_thread_impl.h" | |
16 #include "chrome/common/net/notifier/listener/talk_mediator_impl.h" | |
17 #include "chrome/service/gaia/service_gaia_authenticator.h" | 15 #include "chrome/service/gaia/service_gaia_authenticator.h" |
18 #include "chrome/service/service_process.h" | 16 #include "chrome/service/service_process.h" |
| 17 #include "jingle/notifier/listener/mediator_thread_impl.h" |
| 18 #include "jingle/notifier/listener/talk_mediator_impl.h" |
19 | 19 |
20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
21 #include "net/url_request/url_request_status.h" | 21 #include "net/url_request/url_request_status.h" |
22 | 22 |
23 // The real guts of SyncBackendHost, to keep the public client API clean. | 23 // The real guts of SyncBackendHost, to keep the public client API clean. |
24 class CloudPrintProxyBackend::Core | 24 class CloudPrintProxyBackend::Core |
25 : public base::RefCountedThreadSafe<CloudPrintProxyBackend::Core>, | 25 : public base::RefCountedThreadSafe<CloudPrintProxyBackend::Core>, |
26 public URLFetcherDelegate, | 26 public URLFetcherDelegate, |
27 public cloud_print::PrintServerWatcherDelegate, | 27 public cloud_print::PrintServerWatcherDelegate, |
28 public PrinterJobHandlerDelegate, | 28 public PrinterJobHandlerDelegate, |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 StartRegistration(); | 652 StartRegistration(); |
653 } | 653 } |
654 } | 654 } |
655 | 655 |
656 // PrinterJobHandler::Delegate implementation | 656 // PrinterJobHandler::Delegate implementation |
657 void CloudPrintProxyBackend::Core::OnPrinterJobHandlerShutdown( | 657 void CloudPrintProxyBackend::Core::OnPrinterJobHandlerShutdown( |
658 PrinterJobHandler* job_handler, const std::string& printer_id) { | 658 PrinterJobHandler* job_handler, const std::string& printer_id) { |
659 LOG(INFO) << "CP_PROXY: Printer job handle shutdown, id " << printer_id; | 659 LOG(INFO) << "CP_PROXY: Printer job handle shutdown, id " << printer_id; |
660 job_handler_map_.erase(printer_id); | 660 job_handler_map_.erase(printer_id); |
661 } | 661 } |
662 | |
OLD | NEW |