Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: chrome/browser/predictors/predictor_database_service.cc

Issue 12225093: chrome/browser/predictors componentization part-1 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/browser/predictors/predictor_database_service.h ('k') | chrome/browser/predictors/resource_prefetch_predictor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698