OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 friend class HistoryURLProvider; | 588 friend class HistoryURLProvider; |
589 friend class HistoryURLProviderTest; | 589 friend class HistoryURLProviderTest; |
590 template<typename Info, typename Callback> friend class DownloadRequest; | 590 template<typename Info, typename Callback> friend class DownloadRequest; |
591 friend class PageUsageRequest; | 591 friend class PageUsageRequest; |
592 friend class RedirectRequest; | 592 friend class RedirectRequest; |
593 friend class TestingProfile; | 593 friend class TestingProfile; |
594 | 594 |
595 // Implementation of content::NotificationObserver. | 595 // Implementation of content::NotificationObserver. |
596 virtual void Observe(int type, | 596 virtual void Observe(int type, |
597 const content::NotificationSource& source, | 597 const content::NotificationSource& source, |
598 const content::NotificationDetails& details); | 598 const content::NotificationDetails& details) OVERRIDE; |
599 | 599 |
600 // Low-level Init(). Same as the public version, but adds a |no_db| parameter | 600 // Low-level Init(). Same as the public version, but adds a |no_db| parameter |
601 // that is only set by unittests which causes the backend to not init its DB. | 601 // that is only set by unittests which causes the backend to not init its DB. |
602 bool Init(const FilePath& history_dir, | 602 bool Init(const FilePath& history_dir, |
603 BookmarkService* bookmark_service, | 603 BookmarkService* bookmark_service, |
604 bool no_db); | 604 bool no_db); |
605 | 605 |
606 // Called by the HistoryURLProvider class to schedule an autocomplete, it | 606 // Called by the HistoryURLProvider class to schedule an autocomplete, it |
607 // will be called back on the internal history thread with the history | 607 // will be called back on the internal history thread with the history |
608 // database so it can query. See history_autocomplete.cc for a diagram. | 608 // database so it can query. See history_autocomplete.cc for a diagram. |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 BookmarkService* bookmark_service_; | 861 BookmarkService* bookmark_service_; |
862 bool no_db_; | 862 bool no_db_; |
863 | 863 |
864 // True if needs top site migration. | 864 // True if needs top site migration. |
865 bool needs_top_sites_migration_; | 865 bool needs_top_sites_migration_; |
866 | 866 |
867 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 867 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
868 }; | 868 }; |
869 | 869 |
870 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ | 870 #endif // CHROME_BROWSER_HISTORY_HISTORY_H_ |
OLD | NEW |