| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/predictors/predictor_database_service.h" |
| 6 |
| 7 #include "base/file_path.h" |
| 8 #include "chrome/browser/predictors/resource_prefetch_common.h" |
| 9 #include "chrome/browser/profiles/profile.h" |
| 10 |
| 11 namespace predictors { |
| 12 |
| 13 PredictorDatabaseService::PredictorDatabaseService(Profile* profile) |
| 14 : profile_(profile) { |
| 15 ResourcePrefetchPredictorConfig config; |
| 16 db_ = new PredictorDatabase( |
| 17 profile->GetPath(), |
| 18 IsSpeculativeResourcePrefetchingEnabled(profile, &config)); |
| 19 } |
| 20 |
| 21 PredictorDatabaseService::~PredictorDatabaseService() { |
| 22 } |
| 23 |
| 24 void PredictorDatabaseService::Shutdown() { |
| 25 db_->SetCancelled(); |
| 26 } |
| 27 |
| 28 } // namespace predictors |
| OLD | NEW |