| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // Notification that the history system is shutting down. This will break | 138 // Notification that the history system is shutting down. This will break |
| 139 // the refs owned by the delegate and any pending transaction so it will | 139 // the refs owned by the delegate and any pending transaction so it will |
| 140 // actually be deleted. | 140 // actually be deleted. |
| 141 void Closing(); | 141 void Closing(); |
| 142 | 142 |
| 143 // See NotifyRenderProcessHostDestruction. | 143 // See NotifyRenderProcessHostDestruction. |
| 144 void NotifyRenderProcessHostDestruction(const void* host); | 144 void NotifyRenderProcessHostDestruction(const void* host); |
| 145 | 145 |
| 146 // Navigation ---------------------------------------------------------------- | 146 // Navigation ---------------------------------------------------------------- |
| 147 | 147 |
| 148 void AddPage(scoped_refptr<HistoryAddPageArgs> request); | 148 void AddPage(const HistoryAddPageArgs& request); |
| 149 virtual void SetPageTitle(const GURL& url, const string16& title); | 149 virtual void SetPageTitle(const GURL& url, const string16& title); |
| 150 void AddPageNoVisitForBookmark(const GURL& url, const string16& title); | 150 void AddPageNoVisitForBookmark(const GURL& url, const string16& title); |
| 151 | 151 |
| 152 // Updates the database backend with a page's ending time stamp information. | 152 // Updates the database backend with a page's ending time stamp information. |
| 153 // The page can be identified by the combination of the pointer to | 153 // The page can be identified by the combination of the pointer to |
| 154 // a RenderProcessHost, the page id and the url. | 154 // a RenderProcessHost, the page id and the url. |
| 155 // | 155 // |
| 156 // The given pointer will not be dereferenced, it is only used for | 156 // The given pointer will not be dereferenced, it is only used for |
| 157 // identification purposes, hence it is a void*. | 157 // identification purposes, hence it is a void*. |
| 158 void UpdateWithPageEndTime(const void* host, | 158 void UpdateWithPageEndTime(const void* host, |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 // Used to provide the Android ContentProvider APIs. | 893 // Used to provide the Android ContentProvider APIs. |
| 894 scoped_ptr<AndroidProviderBackend> android_provider_backend_; | 894 scoped_ptr<AndroidProviderBackend> android_provider_backend_; |
| 895 #endif | 895 #endif |
| 896 | 896 |
| 897 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 897 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 898 }; | 898 }; |
| 899 | 899 |
| 900 } // namespace history | 900 } // namespace history |
| 901 | 901 |
| 902 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 902 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |