| 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_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
| 10 | 10 |
| 11 class GetRegistrationCodeFunction : public SyncExtensionFunction { | 11 class EchoPrivateGetRegistrationCodeFunction : public SyncExtensionFunction { |
| 12 public: | 12 public: |
| 13 GetRegistrationCodeFunction(); | 13 EchoPrivateGetRegistrationCodeFunction(); |
| 14 | 14 |
| 15 protected: | 15 protected: |
| 16 virtual ~GetRegistrationCodeFunction(); | 16 virtual ~EchoPrivateGetRegistrationCodeFunction(); |
| 17 virtual bool RunImpl() OVERRIDE; | 17 virtual bool RunImpl() OVERRIDE; |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 DECLARE_EXTENSION_FUNCTION("echoPrivate.getRegistrationCode", | 20 DECLARE_EXTENSION_FUNCTION("echoPrivate.getRegistrationCode", |
| 21 ECHOPRIVATE_GETREGISTRATIONCODE) | 21 ECHOPRIVATE_GETREGISTRATIONCODE) |
| 22 }; | 22 }; |
| 23 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_ | 23 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_ECHO_PRIVATE_API_H_ |
| OLD | NEW |