Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: chrome/browser/history/history.h

Issue 2802010: Revert 49594 - Convert page contents grabbing from wide to UTF16. The current... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/437/src/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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__
OLDNEW
« no previous file with comments | « chrome/browser/history/expire_history_backend_unittest.cc ('k') | chrome/browser/history/history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698