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/browser/printing/cloud_print/cloud_print_proxy_service.h" | 5 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service.h" |
6 | 6 |
7 #include <stack> | 7 #include <stack> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "chrome/browser/notifications/desktop_notification_service.h" | 22 #include "chrome/browser/notifications/desktop_notification_service.h" |
23 #include "chrome/browser/notifications/notification.h" | 23 #include "chrome/browser/notifications/notification.h" |
24 #include "chrome/browser/notifications/notification_ui_manager.h" | 24 #include "chrome/browser/notifications/notification_ui_manager.h" |
25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
26 #include "chrome/browser/service_process/service_process_control.h" | 26 #include "chrome/browser/service_process/service_process_control.h" |
27 #include "chrome/common/chrome_switches.h" | 27 #include "chrome/common/chrome_switches.h" |
28 #include "chrome/common/cloud_print/cloud_print_proxy_info.h" | 28 #include "chrome/common/cloud_print/cloud_print_proxy_info.h" |
29 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
30 #include "chrome/common/service_messages.h" | 30 #include "chrome/common/service_messages.h" |
31 #include "content/public/browser/browser_thread.h" | 31 #include "content/public/browser/browser_thread.h" |
32 #include "grit/generated_resources.h" | |
33 #include "printing/backend/print_backend.h" | 32 #include "printing/backend/print_backend.h" |
34 #include "ui/base/l10n/l10n_util.h" | |
35 | 33 |
36 using content::BrowserThread; | 34 using content::BrowserThread; |
37 | 35 |
38 CloudPrintProxyService::CloudPrintProxyService(Profile* profile) | 36 CloudPrintProxyService::CloudPrintProxyService(Profile* profile) |
39 : profile_(profile), | 37 : profile_(profile), |
40 weak_factory_(this), | 38 weak_factory_(this), |
41 enforcing_connector_policy_(false) { | 39 enforcing_connector_policy_(false) { |
42 } | 40 } |
43 | 41 |
44 CloudPrintProxyService::~CloudPrintProxyService() { | 42 CloudPrintProxyService::~CloudPrintProxyService() { |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 } | 221 } |
224 | 222 |
225 bool CloudPrintProxyService::InvokeServiceTask(const base::Closure& task) { | 223 bool CloudPrintProxyService::InvokeServiceTask(const base::Closure& task) { |
226 GetServiceProcessControl()->Launch(task, base::Closure()); | 224 GetServiceProcessControl()->Launch(task, base::Closure()); |
227 return true; | 225 return true; |
228 } | 226 } |
229 | 227 |
230 ServiceProcessControl* CloudPrintProxyService::GetServiceProcessControl() { | 228 ServiceProcessControl* CloudPrintProxyService::GetServiceProcessControl() { |
231 return ServiceProcessControl::GetInstance(); | 229 return ServiceProcessControl::GetInstance(); |
232 } | 230 } |
OLD | NEW |