| 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_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE_AP
I_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE_AP
I_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE_AP
I_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE_AP
I_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "chrome/browser/extensions/extension_function.h" | 11 #include "chrome/browser/extensions/extension_function.h" |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 | 14 |
| 15 namespace api { |
| 16 namespace cloud_print_private { |
| 17 |
| 18 struct UserSettings; |
| 19 |
| 20 } // namespace cloud_print_private |
| 21 } // namespace api |
| 22 |
| 23 |
| 15 // For use only in tests. | 24 // For use only in tests. |
| 16 class CloudPrintTestsDelegate { | 25 class CloudPrintTestsDelegate { |
| 17 public: | 26 public: |
| 18 CloudPrintTestsDelegate(); | 27 CloudPrintTestsDelegate(); |
| 19 virtual ~CloudPrintTestsDelegate(); | 28 virtual ~CloudPrintTestsDelegate(); |
| 20 | 29 |
| 21 virtual void SetupConnector( | 30 virtual void SetupConnector( |
| 22 const std::string& user_email, | 31 const std::string& user_email, |
| 23 const std::string& robot_email, | 32 const std::string& robot_email, |
| 24 const std::string& credentials, | 33 const std::string& credentials, |
| 25 bool connect_new_printers, | 34 const api::cloud_print_private::UserSettings& user_settings) = 0; |
| 26 const std::vector<std::string>& printer_blacklist) = 0; | |
| 27 | 35 |
| 28 virtual std::string GetHostName() = 0; | 36 virtual std::string GetHostName() = 0; |
| 29 | 37 |
| 30 virtual std::string GetClientId() = 0; | 38 virtual std::string GetClientId() = 0; |
| 31 | 39 |
| 32 virtual std::vector<std::string> GetPrinters() = 0; | 40 virtual std::vector<std::string> GetPrinters() = 0; |
| 33 | 41 |
| 34 static CloudPrintTestsDelegate* instance(); | 42 static CloudPrintTestsDelegate* instance(); |
| 35 | 43 |
| 36 private: | 44 private: |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 protected: | 100 protected: |
| 93 virtual ~CloudPrintPrivateGetClientIdFunction(); | 101 virtual ~CloudPrintPrivateGetClientIdFunction(); |
| 94 | 102 |
| 95 // ExtensionFunction: | 103 // ExtensionFunction: |
| 96 virtual bool RunImpl() OVERRIDE; | 104 virtual bool RunImpl() OVERRIDE; |
| 97 }; | 105 }; |
| 98 | 106 |
| 99 } // namespace extensions | 107 } // namespace extensions |
| 100 | 108 |
| 101 #endif // CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE
_API_H_ | 109 #endif // CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE
_API_H_ |
| OLD | NEW |