| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 scoped_refptr<DeleteRequest> request, | 307 scoped_refptr<DeleteRequest> request, |
| 308 const std::string& selection, | 308 const std::string& selection, |
| 309 const std::vector<base::string16>& selection_args); | 309 const std::vector<base::string16>& selection_args); |
| 310 | 310 |
| 311 void DeleteHistory(scoped_refptr<DeleteRequest> request, | 311 void DeleteHistory(scoped_refptr<DeleteRequest> request, |
| 312 const std::string& selection, | 312 const std::string& selection, |
| 313 const std::vector<base::string16>& selection_args); | 313 const std::vector<base::string16>& selection_args); |
| 314 | 314 |
| 315 // Statement ---------------------------------------------------------------- | 315 // Statement ---------------------------------------------------------------- |
| 316 // Move the statement's current position. | 316 // Move the statement's current position. |
| 317 void MoveStatement(scoped_refptr<MoveStatementRequest> request, | 317 int MoveStatement(history::AndroidStatement* statement, |
| 318 history::AndroidStatement* statement, | 318 int current_pos, |
| 319 int current_pos, | 319 int destination); |
| 320 int destination); | |
| 321 | 320 |
| 322 // Close the given statement. The ownership is transfered. | 321 // Close the given statement. The ownership is transfered. |
| 323 void CloseStatement(AndroidStatement* statement); | 322 void CloseStatement(AndroidStatement* statement); |
| 324 | 323 |
| 325 // Search terms ------------------------------------------------------------- | 324 // Search terms ------------------------------------------------------------- |
| 326 void InsertSearchTerm(scoped_refptr<InsertRequest> request, | 325 void InsertSearchTerm(scoped_refptr<InsertRequest> request, |
| 327 const SearchRow& row); | 326 const SearchRow& row); |
| 328 | 327 |
| 329 void UpdateSearchTerms(scoped_refptr<UpdateRequest> request, | 328 void UpdateSearchTerms(scoped_refptr<UpdateRequest> request, |
| 330 const SearchRow& row, | 329 const SearchRow& row, |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 | 864 |
| 866 // Listens for the system being under memory pressure. | 865 // Listens for the system being under memory pressure. |
| 867 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 866 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 868 | 867 |
| 869 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 868 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
| 870 }; | 869 }; |
| 871 | 870 |
| 872 } // namespace history | 871 } // namespace history |
| 873 | 872 |
| 874 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 873 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
| OLD | NEW |