| Index: chrome/browser/predictors/predictor_database_service.cc
|
| diff --git a/chrome/browser/predictors/predictor_database_service.cc b/chrome/browser/predictors/predictor_database_service.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3b545b287a8134715c5fc487b9244ed62727a21d
|
| --- /dev/null
|
| +++ b/chrome/browser/predictors/predictor_database_service.cc
|
| @@ -0,0 +1,28 @@
|
| +// Copyright (c) 2012 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.
|
| +
|
| +#include "chrome/browser/predictors/predictor_database_service.h"
|
| +
|
| +#include "base/file_path.h"
|
| +#include "chrome/browser/predictors/resource_prefetch_common.h"
|
| +#include "chrome/browser/profiles/profile.h"
|
| +
|
| +namespace predictors {
|
| +
|
| +PredictorDatabaseService::PredictorDatabaseService(Profile* profile)
|
| + : profile_(profile) {
|
| + ResourcePrefetchPredictorConfig config;
|
| + db_ = new PredictorDatabase(
|
| + profile->GetPath(),
|
| + IsSpeculativeResourcePrefetchingEnabled(profile, &config));
|
| +}
|
| +
|
| +PredictorDatabaseService::~PredictorDatabaseService() {
|
| +}
|
| +
|
| +void PredictorDatabaseService::Shutdown() {
|
| + db_->SetCancelled();
|
| +}
|
| +
|
| +} // namespace predictors
|
|
|