Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: chrome/browser/extensions/extension_system_api.h

Issue 8662008: Implement chrome.systemPrivate.getIncognitoModeAvailability extension API function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Made destructor virtual Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698