diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 20:50:46 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-18 20:50:46 +0000 |
commit | 0a8f88c90840e5f642e6bc64e150229d336eca72 (patch) | |
tree | 646c7fd7c7ccd20c8902c9b8058b5f675418c098 /chrome/browser/history/history_backend.h | |
parent | 420949ff13d309c7bbc56173bca33ee4ffafd1b3 (diff) | |
download | chromium_src-0a8f88c90840e5f642e6bc64e150229d336eca72.zip chromium_src-0a8f88c90840e5f642e6bc64e150229d336eca72.tar.gz chromium_src-0a8f88c90840e5f642e6bc64e150229d336eca72.tar.bz2 |
Ports all of the chrome/browser/history code to use FilePath, except
for DownloadDatabase, InMemoryDatabase, and RedirectUiTest. Except for in those
files, we now only use std::wstring for text strings.
This CL also enables two more unittests on Mac.
patch by Rohit Rao.
http://codereview.chromium.org/48018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12009 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/history_backend.h')
-rw-r--r-- | chrome/browser/history/history_backend.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h index 5c23991..7a66008 100644 --- a/chrome/browser/history/history_backend.h +++ b/chrome/browser/history/history_backend.h @@ -2,12 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H__ -#define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H__ +#ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ +#define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ #include <utility> #include "base/gfx/rect.h" +#include "base/file_path.h" #include "base/lock.h" #include "base/scoped_ptr.h" #include "base/task.h" @@ -95,7 +96,7 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, // may be NULL. // // This constructor is fast and does no I/O, so can be called at any time. - HistoryBackend(const std::wstring& history_dir, + HistoryBackend(const FilePath& history_dir, Delegate* delegate, BookmarkService* bookmark_service); @@ -263,8 +264,8 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, friend class ::TestingProfile; // Computes the name of the specified database on disk. - std::wstring GetThumbnailFileName() const; - std::wstring GetArchivedFileName() const; + FilePath GetThumbnailFileName() const; + FilePath GetArchivedFileName() const; class URLQuerier; friend class URLQuerier; @@ -410,7 +411,7 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, scoped_ptr<Delegate> delegate_; // Directory where database files will be stored. - std::wstring history_dir_; + FilePath history_dir_; // The history/thumbnail databases. Either MAY BE NULL if the database could // not be opened, all users must first check for NULL and return immediately @@ -489,9 +490,9 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>, // history data from us. Can be NULL if there are no listeners. scoped_ptr<HistoryPublisher> history_publisher_; - DISALLOW_EVIL_CONSTRUCTORS(HistoryBackend); + DISALLOW_COPY_AND_ASSIGN(HistoryBackend); }; } // namespace history -#endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H__ +#endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |