| 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_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_TABLE_H_ | 5 #ifndef CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_TABLE_H_ |
| 6 #define CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_TABLE_H_ | 6 #define CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_TABLE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // DB thread functions. | 64 // DB thread functions. |
| 65 void GetRow(const Row::Id& id, Row* row); | 65 void GetRow(const Row::Id& id, Row* row); |
| 66 void GetAllRows(Rows* row_buffer); | 66 void GetAllRows(Rows* row_buffer); |
| 67 void AddRow(const Row& row); | 67 void AddRow(const Row& row); |
| 68 void UpdateRow(const Row& row); | 68 void UpdateRow(const Row& row); |
| 69 void AddAndUpdateRows(const Rows& rows_to_add, const Rows& rows_to_update); | 69 void AddAndUpdateRows(const Rows& rows_to_add, const Rows& rows_to_update); |
| 70 void DeleteRows(const std::vector<Row::Id>& id_list); | 70 void DeleteRows(const std::vector<Row::Id>& id_list); |
| 71 void DeleteAllRows(); | 71 void DeleteAllRows(); |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 friend class PredictorDatabaseInternal; | 74 friend class PredictorDatabase; |
| 75 | 75 |
| 76 AutocompleteActionPredictorTable(); | 76 AutocompleteActionPredictorTable(); |
| 77 virtual ~AutocompleteActionPredictorTable(); | 77 virtual ~AutocompleteActionPredictorTable(); |
| 78 | 78 |
| 79 // PredictorTableBase methods (DB thread). | 79 // PredictorTableBase methods (DB thread). |
| 80 virtual void CreateTableIfNonExistent() OVERRIDE; | 80 virtual void CreateTableIfNonExistent() OVERRIDE; |
| 81 virtual void LogDatabaseStats() OVERRIDE; | 81 virtual void LogDatabaseStats() OVERRIDE; |
| 82 | 82 |
| 83 DISALLOW_COPY_AND_ASSIGN(AutocompleteActionPredictorTable); | 83 DISALLOW_COPY_AND_ASSIGN(AutocompleteActionPredictorTable); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace predictors | 86 } // namespace predictors |
| 87 | 87 |
| 88 #endif // CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_TABLE_H_ | 88 #endif // CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_TABLE_H_ |
| OLD | NEW |