OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GCD_PRIVATE_GCD_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ |
7 | 7 |
8 #include "base/memory/linked_ptr.h" | 8 #include "base/memory/linked_ptr.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/extensions/chrome_extension_function.h" | 10 #include "chrome/browser/extensions/chrome_extension_function.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 protected: | 206 protected: |
207 virtual ~GcdPrivateSetupStopFunction(); | 207 virtual ~GcdPrivateSetupStopFunction(); |
208 | 208 |
209 // SyncExtensionFunction overrides. | 209 // SyncExtensionFunction overrides. |
210 virtual bool RunAsync() OVERRIDE; | 210 virtual bool RunAsync() OVERRIDE; |
211 | 211 |
212 private: | 212 private: |
213 }; | 213 }; |
214 | 214 |
| 215 class GcdPrivateGetCommandDefsFunction : public ChromeAsyncExtensionFunction { |
| 216 public: |
| 217 DECLARE_EXTENSION_FUNCTION("gcdPrivate.getCommandDefs", |
| 218 GCDPRIVATE_GETCOMMANDDEFS) |
| 219 |
| 220 GcdPrivateGetCommandDefsFunction(); |
| 221 |
| 222 protected: |
| 223 virtual ~GcdPrivateGetCommandDefsFunction(); |
| 224 |
| 225 // SyncExtensionFunction overrides. |
| 226 virtual bool RunAsync() OVERRIDE; |
| 227 |
| 228 private: |
| 229 }; |
| 230 |
| 231 class GcdPrivateInsertCommandFunction : public ChromeAsyncExtensionFunction { |
| 232 public: |
| 233 DECLARE_EXTENSION_FUNCTION("gcdPrivate.insertCommand", |
| 234 GCDPRIVATE_INSERTCOMMAND) |
| 235 |
| 236 GcdPrivateInsertCommandFunction(); |
| 237 |
| 238 protected: |
| 239 virtual ~GcdPrivateInsertCommandFunction(); |
| 240 |
| 241 // SyncExtensionFunction overrides. |
| 242 virtual bool RunAsync() OVERRIDE; |
| 243 |
| 244 private: |
| 245 }; |
| 246 |
| 247 class GcdPrivateGetCommandFunction : public ChromeAsyncExtensionFunction { |
| 248 public: |
| 249 DECLARE_EXTENSION_FUNCTION("gcdPrivate.getCommand", GCDPRIVATE_GETCOMMAND) |
| 250 |
| 251 GcdPrivateGetCommandFunction(); |
| 252 |
| 253 protected: |
| 254 virtual ~GcdPrivateGetCommandFunction(); |
| 255 |
| 256 // SyncExtensionFunction overrides. |
| 257 virtual bool RunAsync() OVERRIDE; |
| 258 |
| 259 private: |
| 260 }; |
| 261 |
| 262 class GcdPrivateCancelCommandFunction : public ChromeAsyncExtensionFunction { |
| 263 public: |
| 264 DECLARE_EXTENSION_FUNCTION("gcdPrivate.cancelCommand", |
| 265 GCDPRIVATE_CANCELCOMMAND) |
| 266 |
| 267 GcdPrivateCancelCommandFunction(); |
| 268 |
| 269 protected: |
| 270 virtual ~GcdPrivateCancelCommandFunction(); |
| 271 |
| 272 // SyncExtensionFunction overrides. |
| 273 virtual bool RunAsync() OVERRIDE; |
| 274 |
| 275 private: |
| 276 }; |
| 277 |
| 278 class GcdPrivateGetCommandsListFunction : public ChromeAsyncExtensionFunction { |
| 279 public: |
| 280 DECLARE_EXTENSION_FUNCTION("gcdPrivate.getCommandsList", |
| 281 GCDPRIVATE_GETCOMMANDSLIST) |
| 282 |
| 283 GcdPrivateGetCommandsListFunction(); |
| 284 |
| 285 protected: |
| 286 virtual ~GcdPrivateGetCommandsListFunction(); |
| 287 |
| 288 // SyncExtensionFunction overrides. |
| 289 virtual bool RunAsync() OVERRIDE; |
| 290 |
| 291 private: |
| 292 }; |
| 293 |
215 } // namespace extensions | 294 } // namespace extensions |
216 | 295 |
217 #endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ | 296 #endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_ |
OLD | NEW |