summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 23:58:31 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 23:58:31 +0000
commit075ae739d9f5693eb1bbd203af59eef1bb21606e (patch)
tree48fc2d8128ff99e16fe6b1391cdcfb0ffeca1bf1 /chrome/common
parenta27a938d8511abfaf89d6e2d0e4d4242c76dffed (diff)
downloadchromium_src-075ae739d9f5693eb1bbd203af59eef1bb21606e.zip
chromium_src-075ae739d9f5693eb1bbd203af59eef1bb21606e.tar.gz
chromium_src-075ae739d9f5693eb1bbd203af59eef1bb21606e.tar.bz2
Bring history.cc and dependents into the build.
Review URL: http://codereview.chromium.org/20284 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/temp_scaffolding_stubs.cc22
-rw-r--r--chrome/common/temp_scaffolding_stubs.h76
2 files changed, 23 insertions, 75 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc
index 7497c8b..8d6eb8a 100644
--- a/chrome/common/temp_scaffolding_stubs.cc
+++ b/chrome/common/temp_scaffolding_stubs.cc
@@ -13,6 +13,7 @@
#include "base/task.h"
#include "build/build_config.h"
#include "chrome/browser/autocomplete/autocomplete.h"
+#include "chrome/browser/autocomplete/history_url_provider.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_shutdown.h"
#include "chrome/browser/cache_manager_host.h"
@@ -428,3 +429,24 @@ void DebuggerShell::ProcessCommand(const std::wstring& data) {
NOTIMPLEMENTED();
}
#endif // !CHROME_DEBUGGER_DISABLED
+
+void HistoryURLProvider::ExecuteWithDB(history::HistoryBackend*,
+ history::URLDatabase*,
+ HistoryURLProviderParams*) {
+ NOTIMPLEMENTED();
+}
+
+namespace bookmark_utils {
+
+bool MoreRecentlyAdded(BookmarkNode* n1, BookmarkNode* n2) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+std::vector<BookmarkNode*> GetMostRecentlyModifiedGroups(BookmarkModel* model,
+ size_t max_count) {
+ NOTIMPLEMENTED();
+ return std::vector<BookmarkNode*>();
+}
+
+}
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h
index 02b10db..b9dde8d 100644
--- a/chrome/common/temp_scaffolding_stubs.h
+++ b/chrome/common/temp_scaffolding_stubs.h
@@ -25,6 +25,7 @@
#include "chrome/browser/cancelable_request.h"
#include "chrome/browser/download/save_types.h"
#include "chrome/browser/history/download_types.h"
+#include "chrome/browser/history/history.h"
#include "chrome/browser/renderer_host/resource_handler.h"
#include "chrome/browser/safe_browsing/safe_browsing_util.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
@@ -282,81 +283,6 @@ class TabRestoreService : public BaseSessionService {
void RestoreMostRecentEntry(Browser*) { NOTIMPLEMENTED(); }
};
-namespace history {
-
-class ExpireHistoryBackend {
- public:
- BookmarkService* bookmark_service_;
-};
-
-class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend> {
- public:
- BookmarkService* bookmark_service_;
- ExpireHistoryBackend expirer_;
-};
-
-class HistoryDatabase {
- public:
- static std::string GURLToDatabaseURL(const GURL& url) {
- NOTIMPLEMENTED();
- return "";
- }
-};
-
-}
-
-class HistoryService {
- public:
- class URLEnumerator {
- public:
- virtual ~URLEnumerator() {}
- virtual void OnURL(const GURL& url) = 0;
- virtual void OnComplete(bool success) = 0;
- };
- class Handle {
- public:
- };
- HistoryService() {}
- HistoryService(Profile* profile) {}
- bool Init(const FilePath& history_dir, BookmarkService* bookmark_service) {
- NOTIMPLEMENTED();
- return false;
- }
- void SetOnBackendDestroyTask(Task*) { NOTIMPLEMENTED(); }
- void AddPage(GURL const&, void const*, int, GURL const&,
- int, std::vector<GURL> const&) { NOTIMPLEMENTED(); }
- void AddPage(const GURL& url) { NOTIMPLEMENTED(); }
- void SetPageContents(const GURL& url, const std::wstring& contents) {
- NOTIMPLEMENTED();
- }
- void IterateURLs(URLEnumerator* iterator) { NOTIMPLEMENTED(); }
- void DeleteAllSearchTermsForKeyword(long long) { NOTIMPLEMENTED(); }
- void SetKeywordSearchTermsForURL(const GURL& url,
- long long keyword_id,
- const std::wstring& term) {
- NOTIMPLEMENTED();
- }
- void NotifyRenderProcessHostDestruction(int) { NOTIMPLEMENTED(); };
- void Cleanup() { NOTIMPLEMENTED(); }
- void AddRef() { NOTIMPLEMENTED(); }
- void Release() { NOTIMPLEMENTED(); }
- void SetFavIconOutOfDateForPage(const GURL&) { NOTIMPLEMENTED(); }
- void SetPageThumbnail(const GURL&, const SkBitmap&, const ThumbnailScore&) {
- NOTIMPLEMENTED();
- }
- void SetPageTitle(const GURL&, const std::wstring&) {
- NOTIMPLEMENTED();
- }
- typedef Callback0::Type ExpireHistoryCallback;
- void ExpireHistoryBetween(base::Time begin_time, base::Time end_time,
- CancelableRequestConsumerBase* consumer,
- ExpireHistoryCallback* callback) {
- NOTIMPLEMENTED();
- }
-
- scoped_refptr<history::HistoryBackend> history_backend_;
-};
-
class MetricsService {
public:
MetricsService() { }