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

Unified Diff: base/registry_store.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « base/registry_monitor_manager_unittest.cc ('k') | base/registry_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/registry_store.h
diff --git a/base/registry_store.h b/base/registry_store.h
deleted file mode 100644
index d7e55cb1cc4083074950e911f50d378e67b3461f..0000000000000000000000000000000000000000
--- a/base/registry_store.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2005-2009 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-//
-// Declares class RegistryStore
-///////////////////////////////////////////////////////////////////////////
-
-#ifndef OMAHA_COMMON_REGISTRY_STORE_H__
-#define OMAHA_COMMON_REGISTRY_STORE_H__
-
-#include <wtypes.h>
-#include <atlstr.h>
-#include <vector>
-#include "base/basictypes.h"
-
-namespace omaha {
-
-class RegistryStore {
- public:
- // Constructor
- RegistryStore() {}
-
- // Destructor
- ~RegistryStore() {}
-
- // Open the store
- bool Open(const TCHAR* key_path);
-
- // Close the store
- bool Close();
-
- // Clear the store
- bool Clear();
-
- // Read a value from the store
- bool Read(const TCHAR* name, std::vector<byte>* data) const;
-
- // Write a value to the store
- bool Write(const TCHAR* name, byte* data, int data_size);
-
- // Check to see a named value exists in the store
- bool Exists(const TCHAR* name);
-
- // Remove a value from the store
- bool Remove(const TCHAR* name);
-
- // Get the number of values for this key
- bool GetValueCount(uint32* value_count);
-
- // Get the value name for the given value name index
- bool GetValueNameAt(int index, CString* value_name);
-
- private:
- CString key_path_; // Full path to the registry key
-};
-
-} // namespace omaha
-
-#endif // OMAHA_COMMON_REGISTRY_STORE_H__
« no previous file with comments | « base/registry_monitor_manager_unittest.cc ('k') | base/registry_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698