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

Side by Side Diff: chrome/browser/extensions/settings/settings_namespace.h

Issue 9274004: Take the Extension Storage API out of experimental. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 11 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 | « chrome/browser/extensions/settings/settings_api.h ('k') | chrome/common/common_resources.grd » ('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) 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_SETTINGS_SETTINGS_NAMESPACE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_NAMESPACE_H_
6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_NAMESPACE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_NAMESPACE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 namespace settings_namespace { 13 namespace settings_namespace {
14 14
15 // The namespaces of the storage areas. 15 // The namespaces of the storage areas.
16 enum Namespace { 16 enum Namespace {
17 LOCAL, // "local" i.e. chrome.experimental.storage.local 17 LOCAL, // "local" i.e. chrome.storage.local
18 SYNC, // "sync" i.e. chrome.experimental.storage.sync 18 SYNC, // "sync" i.e. chrome.storage.sync
19 INVALID 19 INVALID
20 }; 20 };
21 21
22 // Converts a namespace to its string representation. 22 // Converts a namespace to its string representation.
23 // Namespace must not be INVALID. 23 // Namespace must not be INVALID.
24 std::string ToString(Namespace settings_namespace); 24 std::string ToString(Namespace settings_namespace);
25 25
26 // Converts a string representation of a namespace to its namespace, or INVALID 26 // Converts a string representation of a namespace to its namespace, or INVALID
27 // if the string doesn't map to one. 27 // if the string doesn't map to one.
28 Namespace FromString(const std::string& ns_string); 28 Namespace FromString(const std::string& ns_string);
29 29
30 } // namespace settings_namespace 30 } // namespace settings_namespace
31 31
32 } // namespace extensions 32 } // namespace extensions
33 33
34 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_NAMESPACE_H_ 34 #endif // CHROME_BROWSER_EXTENSIONS_SETTINGS_SETTINGS_NAMESPACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/settings/settings_api.h ('k') | chrome/common/common_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698