| 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/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/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 13 #include "chrome/browser/chrome_thread.h" | 13 #include "chrome/browser/chrome_thread.h" |
| 14 #include "chrome/browser/prefs/pref_service.h" |
| 14 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profile.h" |
| 15 #include "chrome/browser/profile_manager.h" | 16 #include "chrome/browser/profile_manager.h" |
| 16 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
| 17 #include "chrome/common/notification_type.h" | 18 #include "chrome/common/notification_type.h" |
| 18 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 19 #include "chrome/browser/pref_service.h" | |
| 20 | 20 |
| 21 CloudPrintProxyService::CloudPrintProxyService(Profile* profile) { | 21 CloudPrintProxyService::CloudPrintProxyService(Profile* profile) { |
| 22 } | 22 } |
| 23 | 23 |
| 24 CloudPrintProxyService::~CloudPrintProxyService() { | 24 CloudPrintProxyService::~CloudPrintProxyService() { |
| 25 Shutdown(); | 25 Shutdown(); |
| 26 } | 26 } |
| 27 | 27 |
| 28 void CloudPrintProxyService::Initialize() { | 28 void CloudPrintProxyService::Initialize() { |
| 29 } | 29 } |
| 30 | 30 |
| 31 | 31 |
| 32 void CloudPrintProxyService::EnableForUser(const std::string& auth_token) { | 32 void CloudPrintProxyService::EnableForUser(const std::string& auth_token) { |
| 33 // TODO(sanjeevr): Add code to communicate with the cloud print proxy code | 33 // TODO(sanjeevr): Add code to communicate with the cloud print proxy code |
| 34 // running in the service process here. | 34 // running in the service process here. |
| 35 } | 35 } |
| 36 | 36 |
| 37 void CloudPrintProxyService::DisableForUser() { | 37 void CloudPrintProxyService::DisableForUser() { |
| 38 Shutdown(); | 38 Shutdown(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void CloudPrintProxyService::Shutdown() { | 41 void CloudPrintProxyService::Shutdown() { |
| 42 // TODO(sanjeevr): Add code to communicate with the cloud print proxy code | 42 // TODO(sanjeevr): Add code to communicate with the cloud print proxy code |
| 43 // running in the service process here. | 43 // running in the service process here. |
| 44 } | 44 } |
| 45 | 45 |
| OLD | NEW |