Add ENABLE_MEDIA_ROUTER define to builds other than Android and iOS.
[chromium-blink-merge.git] / chrome / browser / predictors / predictor_database.h
blob43e95a90feb1db166fdaf5ef8c4cd5de664d53f2
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.
5 #ifndef CHROME_BROWSER_PREDICTORS_PREDICTOR_DATABASE_H_
6 #define CHROME_BROWSER_PREDICTORS_PREDICTOR_DATABASE_H_
8 #include "base/memory/ref_counted.h"
9 #include "components/keyed_service/core/keyed_service.h"
11 class Profile;
13 namespace sql {
14 class Connection;
17 namespace predictors {
19 class AutocompleteActionPredictorTable;
20 class LoggedInPredictorTable;
21 class PredictorDatabaseInternal;
22 class ResourcePrefetchPredictorTables;
24 class PredictorDatabase : public KeyedService {
25 public:
26 explicit PredictorDatabase(Profile* profile);
27 ~PredictorDatabase() override;
29 scoped_refptr<AutocompleteActionPredictorTable> autocomplete_table();
30 scoped_refptr<ResourcePrefetchPredictorTables> resource_prefetch_tables();
31 scoped_refptr<LoggedInPredictorTable> logged_in_table();
33 // Used for testing.
34 sql::Connection* GetDatabase();
36 private:
37 // KeyedService
38 void Shutdown() override;
40 scoped_refptr<PredictorDatabaseInternal> db_;
42 DISALLOW_COPY_AND_ASSIGN(PredictorDatabase);
45 } // namespace predictors
47 #endif // CHROME_BROWSER_PREDICTORS_PREDICTOR_DATABASE_H_