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_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // See NotifyRenderProcessHostDestruction. | 109 // See NotifyRenderProcessHostDestruction. |
110 void NotifyRenderProcessHostDestruction(const void* host); | 110 void NotifyRenderProcessHostDestruction(const void* host); |
111 | 111 |
112 // Navigation ---------------------------------------------------------------- | 112 // Navigation ---------------------------------------------------------------- |
113 | 113 |
114 void AddPage(scoped_refptr<HistoryAddPageArgs> request); | 114 void AddPage(scoped_refptr<HistoryAddPageArgs> request); |
115 virtual void SetPageTitle(const GURL& url, const std::wstring& title); | 115 virtual void SetPageTitle(const GURL& url, const std::wstring& title); |
116 | 116 |
117 // Indexing ------------------------------------------------------------------ | 117 // Indexing ------------------------------------------------------------------ |
118 | 118 |
119 void SetPageContents(const GURL& url, const string16& contents); | 119 void SetPageContents(const GURL& url, const std::wstring& contents); |
120 | 120 |
121 // Querying ------------------------------------------------------------------ | 121 // Querying ------------------------------------------------------------------ |
122 | 122 |
123 // ScheduleAutocomplete() never frees |provider| (which is globally live). | 123 // ScheduleAutocomplete() never frees |provider| (which is globally live). |
124 // It passes |params| on to the autocomplete system which will eventually | 124 // It passes |params| on to the autocomplete system which will eventually |
125 // free it. | 125 // free it. |
126 void ScheduleAutocomplete(HistoryURLProvider* provider, | 126 void ScheduleAutocomplete(HistoryURLProvider* provider, |
127 HistoryURLProviderParams* params); | 127 HistoryURLProviderParams* params); |
128 | 128 |
129 void IterateURLs(HistoryService::URLEnumerator* enumerator); | 129 void IterateURLs(HistoryService::URLEnumerator* enumerator); |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 // Publishes the history to all indexers which are registered to receive | 540 // Publishes the history to all indexers which are registered to receive |
541 // history data from us. Can be NULL if there are no listeners. | 541 // history data from us. Can be NULL if there are no listeners. |
542 scoped_ptr<HistoryPublisher> history_publisher_; | 542 scoped_ptr<HistoryPublisher> history_publisher_; |
543 | 543 |
544 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 544 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
545 }; | 545 }; |
546 | 546 |
547 } // namespace history | 547 } // namespace history |
548 | 548 |
549 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 549 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
OLD | NEW |