Index: chrome/browser/predictors/logged_in_predictor_table.h |
=================================================================== |
--- chrome/browser/predictors/logged_in_predictor_table.h (revision 0) |
+++ chrome/browser/predictors/logged_in_predictor_table.h (revision 0) |
@@ -0,0 +1,53 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_PREDICTORS_LOGGED_IN_PREDICTOR_TABLE_H_ |
+#define CHROME_BROWSER_PREDICTORS_LOGGED_IN_PREDICTOR_TABLE_H_ |
+ |
+#include <string> |
+ |
+#include "base/time.h" |
+#include "chrome/browser/predictors/predictor_table_base.h" |
+#include "googleurl/src/gurl.h" |
+ |
+namespace sql { |
+class Statement; |
+} |
+ |
+namespace predictors { |
+ |
+// Interface for database tables used by the ResourcePrefetchPredictor. |
+// All methods except the constructor and destructor need to be called on the DB |
+// thread. |
+// |
+// Currently manages: |
+// - UrlResourceTable - resources per Urls. |
Shishir
2013/04/16 21:22:04
These comments are invalid. Please update.
tburkard
2013/04/16 21:47:19
Done.
|
+// - UrlMetadataTable - misc data for Urls (like last visit time). |
+// - HostResourceTable - resources per host. |
+// - HostMetadataTable - misc data for hosts. |
+class LoggedInPredictorTable : public PredictorTableBase { |
Shishir
2013/04/16 21:22:04
LoggedInPredictor seems a bit generic - Would Logg
tburkard
2013/04/16 21:47:19
As explained, this will eventually be used for pur
|
+ public: |
+ void Add(const GURL& url); |
Shishir
2013/04/16 21:22:04
Please explain the table schema.
tburkard
2013/04/16 21:47:19
Done.
|
+ void Exists(const GURL& url, bool* is_present, bool* lookup_succeeded); |
+ void DeleteAllCreatedBetween(const base::Time& delete_begin, |
+ const base::Time& delete_end); |
+ |
+ private: |
+ friend class PredictorDatabaseInternal; |
+ |
+ LoggedInPredictorTable(); |
+ virtual ~LoggedInPredictorTable(); |
+ |
+ // PredictorTableBase methods. |
+ virtual void CreateTableIfNonExistent() OVERRIDE; |
+ virtual void LogDatabaseStats() OVERRIDE; |
+ |
+ std::string GetKey(const GURL& url); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(LoggedInPredictorTable); |
+}; |
+ |
+} // namespace predictors |
+ |
+#endif // CHROME_BROWSER_PREDICTORS_LOGGED_IN_PREDICTOR_TABLE_H_ |
Property changes on: chrome/browser/predictors/logged_in_predictor_table.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |