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

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

Issue 12769009: Pass list of printers to chrome using file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 public: 70 public:
71 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getPrinters", 71 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getPrinters",
72 CLOUDPRINTPRIVATE_GETPRINTERS) 72 CLOUDPRINTPRIVATE_GETPRINTERS)
73 73
74 CloudPrintPrivateGetPrintersFunction(); 74 CloudPrintPrivateGetPrintersFunction();
75 75
76 protected: 76 protected:
77 virtual ~CloudPrintPrivateGetPrintersFunction(); 77 virtual ~CloudPrintPrivateGetPrintersFunction();
78 78
79 void CollectPrinters(); 79 void CollectPrinters();
80 void ReturnResult(const base::ListValue* printers);
81 80
82 // ExtensionFunction: 81 // ExtensionFunction:
83 virtual bool RunImpl() OVERRIDE; 82 virtual bool RunImpl() OVERRIDE;
84 }; 83 };
85 84
86 class CloudPrintPrivateGetClientIdFunction : public AsyncExtensionFunction { 85 class CloudPrintPrivateGetClientIdFunction : public AsyncExtensionFunction {
87 public: 86 public:
88 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getClientId", 87 DECLARE_EXTENSION_FUNCTION("cloudPrintPrivate.getClientId",
89 CLOUDPRINTPRIVATE_GETCLIENTID); 88 CLOUDPRINTPRIVATE_GETCLIENTID);
90 89
91 CloudPrintPrivateGetClientIdFunction(); 90 CloudPrintPrivateGetClientIdFunction();
92 91
93 protected: 92 protected:
94 virtual ~CloudPrintPrivateGetClientIdFunction(); 93 virtual ~CloudPrintPrivateGetClientIdFunction();
95 94
96 // ExtensionFunction: 95 // ExtensionFunction:
97 virtual bool RunImpl() OVERRIDE; 96 virtual bool RunImpl() OVERRIDE;
98 }; 97 };
99 98
100 } // namespace extensions 99 } // namespace extensions
101 100
102 #endif // CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE _API_H_ 101 #endif // CHROME_BROWSER_EXTENSIONS_API_CLOUD_PRINT_PRIVATE_CLOUD_PRINT_PRIVATE _API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/cloud_print_private/cloud_print_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698