summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/safe_browsing_database.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 05:47:15 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 05:47:15 +0000
commitc870c76357fc05d3f7181f8121181f983bd25e7f (patch)
tree4757d379e295e2a594e63d53a0d3b4fe51c77379 /chrome/browser/safe_browsing/safe_browsing_database.h
parent0b88baec73430cb25a4d6181b47c221f99fe5d0f (diff)
downloadchromium_src-c870c76357fc05d3f7181f8121181f983bd25e7f.zip
chromium_src-c870c76357fc05d3f7181f8121181f983bd25e7f.tar.gz
chromium_src-c870c76357fc05d3f7181f8121181f983bd25e7f.tar.bz2
Safe browsing cleanup:
* wstring -> FilePath * create versions of WriteFile/ReadFile with FilePath signatures Review URL: http://codereview.chromium.org/19610 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8797 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_database.h')
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_database.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.h b/chrome/browser/safe_browsing/safe_browsing_database.h
index 6e6612a..72ed129 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database.h
+++ b/chrome/browser/safe_browsing/safe_browsing_database.h
@@ -10,6 +10,7 @@
#include <string>
#include <vector>
+#include "base/file_path.h"
#include "base/hash_tables.h"
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
@@ -35,7 +36,7 @@ class SafeBrowsingDatabase {
// Initializes the database with the given filename. The callback is
// executed after finishing a chunk.
- virtual bool Init(const std::wstring& filename,
+ virtual bool Init(const FilePath& filename,
Callback0::Type* chunk_inserted_callback) = 0;
// Deletes the current database and creates a new one.
@@ -86,13 +87,13 @@ class SafeBrowsingDatabase {
virtual bool UpdateStarted() { return true; }
virtual void UpdateFinished(bool update_succeeded) {}
- virtual std::wstring filename() const { return filename_; }
+ virtual FilePath filename() const { return filename_; }
protected:
friend class SafeBrowsingDatabaseTest;
FRIEND_TEST(SafeBrowsingDatabase, HashCaching);
- static std::wstring BloomFilterFilename(const std::wstring& db_filename);
+ static FilePath BloomFilterFilename(const FilePath& db_filename);
// Load the bloom filter off disk, or generates one if it doesn't exist.
virtual void LoadBloomFilter();
@@ -128,8 +129,8 @@ class SafeBrowsingDatabase {
PrefixCache prefix_miss_cache_;
PrefixCache* prefix_miss_cache() { return &prefix_miss_cache_; }
- std::wstring filename_;
- std::wstring bloom_filter_filename_;
+ FilePath filename_;
+ FilePath bloom_filter_filename_;
scoped_refptr<BloomFilter> bloom_filter_;
};