summaryrefslogtreecommitdiffstats
path: root/chrome/browser/predictors/predictor_table_base.cc
diff options
context:
space:
mode:
authorshishir@chromium.org <shishir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-25 21:36:34 +0000
committershishir@chromium.org <shishir@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-25 21:36:34 +0000
commita45b1bf3554a4e17485c9d2ba9b1471c263ad6f5 (patch)
tree586bef6e614a860837ca841dfa81ad89b98c87f0 /chrome/browser/predictors/predictor_table_base.cc
parent598613508bdb78c7718af4aae4a130c4c91a5aea (diff)
downloadchromium_src-a45b1bf3554a4e17485c9d2ba9b1471c263ad6f5.zip
chromium_src-a45b1bf3554a4e17485c9d2ba9b1471c263ad6f5.tar.gz
chromium_src-a45b1bf3554a4e17485c9d2ba9b1471c263ad6f5.tar.bz2
Speculative resource prefetching for URLs CL.
The learning model and database persistance for speculative resource prefetching based on URLs. The host based learning will come in another CL. Will add tests once the design is approved. BUG= TEST=unit_test Review URL: https://chromiumcodereview.appspot.com/10416002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144019 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/predictors/predictor_table_base.cc')
-rw-r--r--chrome/browser/predictors/predictor_table_base.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/predictors/predictor_table_base.cc b/chrome/browser/predictors/predictor_table_base.cc
index 29aeda9..8175e71d 100644
--- a/chrome/browser/predictors/predictor_table_base.cc
+++ b/chrome/browser/predictors/predictor_table_base.cc
@@ -24,6 +24,10 @@ void PredictorTableBase::Initialize(sql::Connection* db) {
CreateTableIfNonExistent();
}
+void PredictorTableBase::SetCancelled() {
+ cancelled_.Set();
+}
+
sql::Connection* PredictorTableBase::DB() {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
return db_;