Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This is a dumping ground for APIs that are provided for component extensions | |
|
Aaron Boodman
2011/11/28 19:32:44
I don't think this comment is accurate. 'system' i
| |
| 6 // that shall not be exposed publicly. In case any of this functionality | |
| 7 // has to be made available for all extensions, it should be moved to a | |
| 8 // proper namespace. | |
| 9 | |
| 10 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_API_H_ | |
| 11 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_API_H_ | |
| 12 | |
| 13 #include "chrome/browser/extensions/extension_preference_api.h" | |
| 14 | |
| 15 #include <string> | |
| 16 | |
| 17 namespace base { | |
| 18 class Value; | |
| 19 } | |
| 20 | |
| 21 // Transforms the internal numeric representation of | |
| 22 // prefs::kIncognitoModeAvailability into strings exposed to extensions. | |
| 23 class IncognitoModeAvailabilityTransformer : public PrefTransformerInterface { | |
| 24 public: | |
| 25 IncognitoModeAvailabilityTransformer(); | |
| 26 virtual ~IncognitoModeAvailabilityTransformer(); | |
| 27 | |
| 28 virtual base::Value* ExtensionToBrowserPref( | |
| 29 const base::Value* extension_pref, | |
| 30 std::string* error, | |
| 31 bool* bad_message) OVERRIDE; | |
| 32 | |
| 33 virtual base::Value* BrowserToExtensionPref( | |
| 34 const base::Value* browser_pref) OVERRIDE; | |
| 35 | |
| 36 private: | |
| 37 DISALLOW_COPY_AND_ASSIGN(IncognitoModeAvailabilityTransformer); | |
| 38 }; | |
| 39 | |
| 40 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYSTEM_API_H_ | |
| OLD | NEW |