| 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_RUNTIME_RUNTIME_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/extensions/chrome_extension_function.h" | 10 #include "chrome/browser/extensions/chrome_extension_function.h" |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 RUNTIME_GETBACKGROUNDPAGE) | 106 RUNTIME_GETBACKGROUNDPAGE) |
| 107 | 107 |
| 108 protected: | 108 protected: |
| 109 virtual ~RuntimeGetBackgroundPageFunction() {} | 109 virtual ~RuntimeGetBackgroundPageFunction() {} |
| 110 virtual bool RunImpl() OVERRIDE; | 110 virtual bool RunImpl() OVERRIDE; |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 void OnPageLoaded(ExtensionHost*); | 113 void OnPageLoaded(ExtensionHost*); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 class RuntimeSetUninstallUrlFunction : public ChromeSyncExtensionFunction { | 116 class RuntimeSetUninstallURLFunction : public ChromeSyncExtensionFunction { |
| 117 public: | 117 public: |
| 118 DECLARE_EXTENSION_FUNCTION("runtime.setUninstallUrl", | 118 DECLARE_EXTENSION_FUNCTION("runtime.setUninstallURL", |
| 119 RUNTIME_SETUNINSTALLURL) | 119 RUNTIME_SETUNINSTALLURL) |
| 120 | 120 |
| 121 protected: | 121 protected: |
| 122 virtual ~RuntimeSetUninstallUrlFunction() {} | 122 virtual ~RuntimeSetUninstallURLFunction() {} |
| 123 virtual bool RunImpl() OVERRIDE; | 123 virtual bool RunImpl() OVERRIDE; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 class RuntimeReloadFunction : public ChromeSyncExtensionFunction { | 126 class RuntimeReloadFunction : public ChromeSyncExtensionFunction { |
| 127 public: | 127 public: |
| 128 DECLARE_EXTENSION_FUNCTION("runtime.reload", RUNTIME_RELOAD) | 128 DECLARE_EXTENSION_FUNCTION("runtime.reload", RUNTIME_RELOAD) |
| 129 | 129 |
| 130 protected: | 130 protected: |
| 131 virtual ~RuntimeReloadFunction() {} | 131 virtual ~RuntimeReloadFunction() {} |
| 132 virtual bool RunImpl() OVERRIDE; | 132 virtual bool RunImpl() OVERRIDE; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 RUNTIME_GETPACKAGEDIRECTORYENTRY) | 180 RUNTIME_GETPACKAGEDIRECTORYENTRY) |
| 181 | 181 |
| 182 protected: | 182 protected: |
| 183 virtual ~RuntimeGetPackageDirectoryEntryFunction() {} | 183 virtual ~RuntimeGetPackageDirectoryEntryFunction() {} |
| 184 virtual bool RunImpl() OVERRIDE; | 184 virtual bool RunImpl() OVERRIDE; |
| 185 }; | 185 }; |
| 186 | 186 |
| 187 } // namespace extensions | 187 } // namespace extensions |
| 188 | 188 |
| 189 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ | 189 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ |
| OLD | NEW |