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_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 public: | 271 public: |
272 DECLARE_EXTENSION_FUNCTION("developerPrivate.enable", | 272 DECLARE_EXTENSION_FUNCTION("developerPrivate.enable", |
273 DEVELOPERPRIVATE_ENABLE); | 273 DEVELOPERPRIVATE_ENABLE); |
274 | 274 |
275 DeveloperPrivateEnableFunction(); | 275 DeveloperPrivateEnableFunction(); |
276 | 276 |
277 protected: | 277 protected: |
278 virtual ~DeveloperPrivateEnableFunction(); | 278 virtual ~DeveloperPrivateEnableFunction(); |
279 | 279 |
280 // Callback for requirements checker. | 280 // Callback for requirements checker. |
281 void OnRequirementsChecked(std::string extension_id, | 281 void OnRequirementsChecked(const std::string& extension_id, |
282 std::vector<std::string> requirements_errors); | 282 std::vector<std::string> requirements_errors); |
283 // ExtensionFunction: | 283 // ExtensionFunction: |
284 virtual bool RunSync() OVERRIDE; | 284 virtual bool RunSync() OVERRIDE; |
285 | 285 |
286 private: | 286 private: |
287 scoped_ptr<RequirementsChecker> requirements_checker_; | 287 scoped_ptr<RequirementsChecker> requirements_checker_; |
288 }; | 288 }; |
289 | 289 |
290 class DeveloperPrivateChooseEntryFunction : public ChromeAsyncExtensionFunction, | 290 class DeveloperPrivateChooseEntryFunction : public ChromeAsyncExtensionFunction, |
291 public EntryPickerClient { | 291 public EntryPickerClient { |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 | 461 |
462 // ExtensionFunction: | 462 // ExtensionFunction: |
463 virtual bool RunImpl() OVERRIDE; | 463 virtual bool RunImpl() OVERRIDE; |
464 }; | 464 }; |
465 | 465 |
466 } // namespace api | 466 } // namespace api |
467 | 467 |
468 } // namespace extensions | 468 } // namespace extensions |
469 | 469 |
470 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ | 470 #endif // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_API
_H_ |
OLD | NEW |