| 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 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ | 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ |
| 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ | 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // Initializes the object. This should be called every time an object of this | 39 // Initializes the object. This should be called every time an object of this |
| 40 // class is constructed. | 40 // class is constructed. |
| 41 void Initialize(ServiceProcessPrefs* service_prefs, Client* client); | 41 void Initialize(ServiceProcessPrefs* service_prefs, Client* client); |
| 42 | 42 |
| 43 // Enables/disables cloud printing for the user | 43 // Enables/disables cloud printing for the user |
| 44 void EnableForUser(const std::string& lsid); | 44 void EnableForUser(const std::string& lsid); |
| 45 void EnableForUserWithRobot( | 45 void EnableForUserWithRobot( |
| 46 const std::string& robot_auth_code, | 46 const std::string& robot_auth_code, |
| 47 const std::string& robot_email, | 47 const std::string& robot_email, |
| 48 const std::string& user_email, | 48 const std::string& user_email, |
| 49 bool connect_new_printers, | 49 const base::DictionaryValue& user_settings); |
| 50 const std::vector<std::string>& printer_blacklist); | |
| 51 void UnregisterPrintersAndDisableForUser(); | 50 void UnregisterPrintersAndDisableForUser(); |
| 52 void DisableForUser(); | 51 void DisableForUser(); |
| 53 // Returns the proxy info. | 52 // Returns the proxy info. |
| 54 void GetProxyInfo(CloudPrintProxyInfo* info); | 53 void GetProxyInfo(CloudPrintProxyInfo* info); |
| 55 | 54 |
| 56 // Launches a browser to see if the proxy policy has been set. | 55 // Launches a browser to see if the proxy policy has been set. |
| 57 void CheckCloudPrintProxyPolicy(); | 56 void CheckCloudPrintProxyPolicy(); |
| 58 | 57 |
| 59 const std::string& user_email() const { | 58 const std::string& user_email() const { |
| 60 return user_email_; | 59 return user_email_; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 ConnectorSettings settings_; | 95 ConnectorSettings settings_; |
| 97 // This is a cleanup class for unregistering printers on proxy disable. | 96 // This is a cleanup class for unregistering printers on proxy disable. |
| 98 scoped_ptr<CloudPrintWipeout> wipeout_; | 97 scoped_ptr<CloudPrintWipeout> wipeout_; |
| 99 | 98 |
| 100 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy); | 99 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxy); |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 } // namespace cloud_print | 102 } // namespace cloud_print |
| 104 | 103 |
| 105 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ | 104 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_PROXY_H_ |
| OLD | NEW |