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

Side by Side Diff: chrome/browser/predictors/predictor_database.h

Issue 117933003: Remove the speculative resource prefetching code. This was experimental code added 1.5 years ago an… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_PREDICTORS_PREDICTOR_DATABASE_H_ 5 #ifndef CHROME_BROWSER_PREDICTORS_PREDICTOR_DATABASE_H_
6 #define CHROME_BROWSER_PREDICTORS_PREDICTOR_DATABASE_H_ 6 #define CHROME_BROWSER_PREDICTORS_PREDICTOR_DATABASE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 9 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
10 10
11 class Profile; 11 class Profile;
12 12
13 namespace sql { 13 namespace sql {
14 class Connection; 14 class Connection;
15 } 15 }
16 16
17 namespace predictors { 17 namespace predictors {
18 18
19 class AutocompleteActionPredictorTable; 19 class AutocompleteActionPredictorTable;
20 class LoggedInPredictorTable; 20 class LoggedInPredictorTable;
21 class PredictorDatabaseInternal; 21 class PredictorDatabaseInternal;
22 class ResourcePrefetchPredictorTables;
23 22
24 class PredictorDatabase : public BrowserContextKeyedService { 23 class PredictorDatabase : public BrowserContextKeyedService {
25 public: 24 public:
26 explicit PredictorDatabase(Profile* profile); 25 explicit PredictorDatabase(Profile* profile);
27 virtual ~PredictorDatabase(); 26 virtual ~PredictorDatabase();
28 27
29 scoped_refptr<AutocompleteActionPredictorTable> autocomplete_table(); 28 scoped_refptr<AutocompleteActionPredictorTable> autocomplete_table();
30 scoped_refptr<ResourcePrefetchPredictorTables> resource_prefetch_tables();
31 scoped_refptr<LoggedInPredictorTable> logged_in_table(); 29 scoped_refptr<LoggedInPredictorTable> logged_in_table();
32 30
33 // Used for testing. 31 // Used for testing.
34 sql::Connection* GetDatabase(); 32 sql::Connection* GetDatabase();
35 33
36 private: 34 private:
37 // BrowserContextKeyedService 35 // BrowserContextKeyedService
38 virtual void Shutdown() OVERRIDE; 36 virtual void Shutdown() OVERRIDE;
39 37
40 scoped_refptr<PredictorDatabaseInternal> db_; 38 scoped_refptr<PredictorDatabaseInternal> db_;
41 39
42 DISALLOW_COPY_AND_ASSIGN(PredictorDatabase); 40 DISALLOW_COPY_AND_ASSIGN(PredictorDatabase);
43 }; 41 };
44 42
45 } // namespace predictors 43 } // namespace predictors
46 44
47 #endif // CHROME_BROWSER_PREDICTORS_PREDICTOR_DATABASE_H_ 45 #endif // CHROME_BROWSER_PREDICTORS_PREDICTOR_DATABASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/resource_prefetch_predictor_observer.cc ('k') | chrome/browser/predictors/predictor_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698