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

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

Issue 6992022: Move Proxy Settings API out of experimental (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed remainder of merge conflict. Fixes unit test Created 9 years, 7 months 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_preference_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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_EXTENSION_PREFERENCE_API_H__ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // into a representation that is used by the extension. 59 // into a representation that is used by the extension.
60 // Returns the extension representation in case of success or NULL otherwise. 60 // Returns the extension representation in case of success or NULL otherwise.
61 // The ownership of the returned value is passed to the caller. 61 // The ownership of the returned value is passed to the caller.
62 virtual Value* BrowserToExtensionPref(const Value* browser_pref) = 0; 62 virtual Value* BrowserToExtensionPref(const Value* browser_pref) = 0;
63 }; 63 };
64 64
65 class GetPreferenceFunction : public SyncExtensionFunction { 65 class GetPreferenceFunction : public SyncExtensionFunction {
66 public: 66 public:
67 virtual ~GetPreferenceFunction(); 67 virtual ~GetPreferenceFunction();
68 virtual bool RunImpl(); 68 virtual bool RunImpl();
69 DECLARE_EXTENSION_FUNCTION_NAME("experimental.preferences.get") 69 DECLARE_EXTENSION_FUNCTION_NAME("preferences.get")
70 }; 70 };
71 71
72 class SetPreferenceFunction : public SyncExtensionFunction { 72 class SetPreferenceFunction : public SyncExtensionFunction {
73 public: 73 public:
74 virtual ~SetPreferenceFunction(); 74 virtual ~SetPreferenceFunction();
75 virtual bool RunImpl(); 75 virtual bool RunImpl();
76 DECLARE_EXTENSION_FUNCTION_NAME("experimental.preferences.set") 76 DECLARE_EXTENSION_FUNCTION_NAME("preferences.set")
77 }; 77 };
78 78
79 class ClearPreferenceFunction : public SyncExtensionFunction { 79 class ClearPreferenceFunction : public SyncExtensionFunction {
80 public: 80 public:
81 virtual ~ClearPreferenceFunction(); 81 virtual ~ClearPreferenceFunction();
82 virtual bool RunImpl(); 82 virtual bool RunImpl();
83 DECLARE_EXTENSION_FUNCTION_NAME("experimental.preferences.clear") 83 DECLARE_EXTENSION_FUNCTION_NAME("preferences.clear")
84 }; 84 };
85 85
86 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__ 86 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFERENCE_API_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_preference_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698