| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 // is not, this operation is ignored. This call will not update the full | 204 // is not, this operation is ignored. This call will not update the full |
| 205 // text index. The last title set when the page is indexed will be the | 205 // text index. The last title set when the page is indexed will be the |
| 206 // title in the full text index. | 206 // title in the full text index. |
| 207 void SetPageTitle(const GURL& url, const std::wstring& title); | 207 void SetPageTitle(const GURL& url, const std::wstring& title); |
| 208 | 208 |
| 209 // Indexing ------------------------------------------------------------------ | 209 // Indexing ------------------------------------------------------------------ |
| 210 | 210 |
| 211 // Notifies history of the body text of the given recently-visited URL. | 211 // Notifies history of the body text of the given recently-visited URL. |
| 212 // If the URL was not visited "recently enough," the history system may | 212 // If the URL was not visited "recently enough," the history system may |
| 213 // discard it. | 213 // discard it. |
| 214 void SetPageContents(const GURL& url, const string16& contents); | 214 void SetPageContents(const GURL& url, const std::wstring& contents); |
| 215 | 215 |
| 216 // Querying ------------------------------------------------------------------ | 216 // Querying ------------------------------------------------------------------ |
| 217 | 217 |
| 218 // Callback class that a client can implement to iterate over URLs. The | 218 // Callback class that a client can implement to iterate over URLs. The |
| 219 // callbacks WILL BE CALLED ON THE BACKGROUND THREAD! Your implementation | 219 // callbacks WILL BE CALLED ON THE BACKGROUND THREAD! Your implementation |
| 220 // should handle this appropriately. | 220 // should handle this appropriately. |
| 221 class URLEnumerator { | 221 class URLEnumerator { |
| 222 public: | 222 public: |
| 223 virtual ~URLEnumerator() {} | 223 virtual ~URLEnumerator() {} |
| 224 | 224 |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 | 834 |
| 835 // Cached values from Init(), used whenever we need to reload the backend. | 835 // Cached values from Init(), used whenever we need to reload the backend. |
| 836 FilePath history_dir_; | 836 FilePath history_dir_; |
| 837 BookmarkService* bookmark_service_; | 837 BookmarkService* bookmark_service_; |
| 838 bool no_db_; | 838 bool no_db_; |
| 839 | 839 |
| 840 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 840 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
| 841 }; | 841 }; |
| 842 | 842 |
| 843 #endif // CHROME_BROWSER_HISTORY_HISTORY_H__ | 843 #endif // CHROME_BROWSER_HISTORY_HISTORY_H__ |
| OLD | NEW |