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

Unified Diff: chrome/browser/extensions/api/storage/storage_api.cc

Issue 11747025: Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ms release build Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/storage/storage_api.cc
diff --git a/chrome/browser/extensions/settings/settings_api.cc b/chrome/browser/extensions/api/storage/storage_api.cc
similarity index 92%
rename from chrome/browser/extensions/settings/settings_api.cc
rename to chrome/browser/extensions/api/storage/storage_api.cc
index 35f4eaf434dcd8bde0ff3f050a2bb0cf8ae0ab30..8be3087aad8c394d053dc6d193acd207ed2b6dbe 100644
--- a/chrome/browser/extensions/settings/settings_api.cc
+++ b/chrome/browser/extensions/api/storage/storage_api.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/extensions/settings/settings_api.h"
+#include "chrome/browser/extensions/api/storage/storage_api.h"
#include <string>
#include <vector>
@@ -10,9 +10,9 @@
#include "base/bind.h"
#include "base/stringprintf.h"
#include "base/values.h"
+#include "chrome/browser/extensions/api/storage/settings_frontend.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extensions_quota_service.h"
-#include "chrome/browser/extensions/settings/settings_frontend.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/extensions/api/storage.h"
#include "content/public/browser/browser_thread.h"
@@ -162,7 +162,7 @@ void GetModificationQuotaLimitHeuristics(QuotaLimitHeuristics* heuristics) {
} // namespace
-bool GetSettingsFunction::RunWithStorage(ValueStore* storage) {
+bool StorageGetFunction::RunWithStorage(ValueStore* storage) {
Value* input = NULL;
EXTENSION_FUNCTION_VALIDATE(args_->Get(0, &input));
@@ -201,7 +201,7 @@ bool GetSettingsFunction::RunWithStorage(ValueStore* storage) {
}
}
-bool GetBytesInUseSettingsFunction::RunWithStorage(ValueStore* storage) {
+bool StorageGetBytesInUseFunction::RunWithStorage(ValueStore* storage) {
Value* input = NULL;
EXTENSION_FUNCTION_VALIDATE(args_->Get(0, &input));
@@ -235,18 +235,18 @@ bool GetBytesInUseSettingsFunction::RunWithStorage(ValueStore* storage) {
return true;
}
-bool SetSettingsFunction::RunWithStorage(ValueStore* storage) {
+bool StorageSetFunction::RunWithStorage(ValueStore* storage) {
DictionaryValue* input = NULL;
EXTENSION_FUNCTION_VALIDATE(args_->GetDictionary(0, &input));
return UseWriteResult(storage->Set(ValueStore::DEFAULTS, *input));
}
-void SetSettingsFunction::GetQuotaLimitHeuristics(
+void StorageSetFunction::GetQuotaLimitHeuristics(
QuotaLimitHeuristics* heuristics) const {
GetModificationQuotaLimitHeuristics(heuristics);
}
-bool RemoveSettingsFunction::RunWithStorage(ValueStore* storage) {
+bool StorageRemoveFunction::RunWithStorage(ValueStore* storage) {
Value* input = NULL;
EXTENSION_FUNCTION_VALIDATE(args_->Get(0, &input));
@@ -269,16 +269,16 @@ bool RemoveSettingsFunction::RunWithStorage(ValueStore* storage) {
};
}
-void RemoveSettingsFunction::GetQuotaLimitHeuristics(
+void StorageRemoveFunction::GetQuotaLimitHeuristics(
QuotaLimitHeuristics* heuristics) const {
GetModificationQuotaLimitHeuristics(heuristics);
}
-bool ClearSettingsFunction::RunWithStorage(ValueStore* storage) {
+bool StorageClearFunction::RunWithStorage(ValueStore* storage) {
return UseWriteResult(storage->Clear());
}
-void ClearSettingsFunction::GetQuotaLimitHeuristics(
+void StorageClearFunction::GetQuotaLimitHeuristics(
QuotaLimitHeuristics* heuristics) const {
GetModificationQuotaLimitHeuristics(heuristics);
}

Powered by Google App Engine
This is Rietveld 408576698