Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Side by Side Diff: chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.h

Issue 14215009: Changed cloud print private API to pass all page settings as single object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed warning and unittes Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
asargent_no_longer_on_chrome 2013/04/17 19:05:04 optional suggestion: remove this blank line
Vitaly Buka (NO REVIEWS) 2013/04/18 00:00:11 Done.
17 namespace cloud_print_private {
18
19 struct UserSettings;
20
21 } // namespace cloud_print_private
22
asargent_no_longer_on_chrome 2013/04/17 19:05:04 this one too
Vitaly Buka (NO REVIEWS) 2013/04/18 00:00:11 Done.
23 } // namespace api
24
25
15 // For use only in tests. 26 // For use only in tests.
16 class CloudPrintTestsDelegate { 27 class CloudPrintTestsDelegate {
17 public: 28 public:
18 CloudPrintTestsDelegate(); 29 CloudPrintTestsDelegate();
19 virtual ~CloudPrintTestsDelegate(); 30 virtual ~CloudPrintTestsDelegate();
20 31
21 virtual void SetupConnector( 32 virtual void SetupConnector(
22 const std::string& user_email, 33 const std::string& user_email,
23 const std::string& robot_email, 34 const std::string& robot_email,
24 const std::string& credentials, 35 const std::string& credentials,
25 bool connect_new_printers, 36 const api::cloud_print_private::UserSettings& user_settings) = 0;
26 const std::vector<std::string>& printer_blacklist) = 0;
27 37
28 virtual std::string GetHostName() = 0; 38 virtual std::string GetHostName() = 0;
29 39
30 virtual std::string GetClientId() = 0; 40 virtual std::string GetClientId() = 0;
31 41
32 virtual std::vector<std::string> GetPrinters() = 0; 42 virtual std::vector<std::string> GetPrinters() = 0;
33 43
34 static CloudPrintTestsDelegate* instance(); 44 static CloudPrintTestsDelegate* instance();
35 45
36 private: 46 private:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 protected: 102 protected:
93 virtual ~CloudPrintPrivateGetClientIdFunction(); 103 virtual ~CloudPrintPrivateGetClientIdFunction();
94 104
95 // ExtensionFunction: 105 // ExtensionFunction:
96 virtual bool RunImpl() OVERRIDE; 106 virtual bool RunImpl() OVERRIDE;
97 }; 107 };
98 108
99 } // namespace extensions 109 } // namespace extensions
100 110
101 #endif // CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE _API_H_ 111 #endif // CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE _API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698