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

Unified Diff: base/file_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/file_reader_unittest.cc ('k') | base/file_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_store.h
diff --git a/base/file_store.h b/base/file_store.h
deleted file mode 100644
index 43febe94064f09ac2bc0e38a10e7df9d5e24d5d7..0000000000000000000000000000000000000000
--- a/base/file_store.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2006-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.
-// ========================================================================
-//
-// Defines class FileStore
-
-#ifndef OMAHA_COMMON_FILE_STORE_H__
-#define OMAHA_COMMON_FILE_STORE_H__
-
-#include <atlstr.h>
-#include <vector>
-#include "base/basictypes.h"
-
-namespace omaha {
-
-class FileStore {
- public:
- // Open the store
- bool Open(const TCHAR* file_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) const;
-
- // Remove a value from the store
- bool Remove(const TCHAR* name);
-
- // Get the number of values for this store
- bool GetValueCount(uint32* value_count);
-
- // Get the value name for the given value name index
- bool GetValueNameAt(uint32 index, CString* value_name);
-
- private:
- CString file_path_; // Full path to the file store
-};
-
-} // namespace omaha
-
-#endif // OMAHA_COMMON_FILE_STORE_H__
« no previous file with comments | « base/file_reader_unittest.cc ('k') | base/file_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698