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 "chrome/browser/extensions/extension_function.h" | 8 #include "chrome/browser/extensions/extension_function.h" |
9 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
(...skipping 91 matching lines...) Loading... |
102 | 102 |
103 class RuntimeGetPlatformInfoFunction : public SyncExtensionFunction { | 103 class RuntimeGetPlatformInfoFunction : public SyncExtensionFunction { |
104 public: | 104 public: |
105 DECLARE_EXTENSION_FUNCTION("runtime.getPlatformInfo", | 105 DECLARE_EXTENSION_FUNCTION("runtime.getPlatformInfo", |
106 RUNTIME_GETPLATFORMINFO); | 106 RUNTIME_GETPLATFORMINFO); |
107 protected: | 107 protected: |
108 virtual ~RuntimeGetPlatformInfoFunction() {} | 108 virtual ~RuntimeGetPlatformInfoFunction() {} |
109 virtual bool RunImpl() OVERRIDE; | 109 virtual bool RunImpl() OVERRIDE; |
110 }; | 110 }; |
111 | 111 |
| 112 class RuntimeGetPackageDirectoryEntryFunction : public SyncExtensionFunction { |
| 113 public: |
| 114 DECLARE_EXTENSION_FUNCTION("runtime.getPackageDirectoryEntry", |
| 115 RUNTIME_GETPACKAGEDIRECTORYENTRY) |
| 116 |
| 117 protected: |
| 118 virtual ~RuntimeGetPackageDirectoryEntryFunction() {} |
| 119 virtual bool RunImpl() OVERRIDE; |
| 120 }; |
| 121 |
112 } // namespace extensions | 122 } // namespace extensions |
113 | 123 |
114 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ | 124 #endif // CHROME_BROWSER_EXTENSIONS_API_RUNTIME_RUNTIME_API_H_ |
OLD | NEW |