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

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

Issue 14967003: Drop more dependencies of ProfileKeyedService infrastructure on chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 7 years, 7 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_AUTOCOMPLETE_ACTION_PREDICTOR_FACTORY_H_ 5 #ifndef CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_FACTORY_H_
6 #define CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_FACTORY_H_ 6 #define CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_FACTORY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "chrome/browser/profiles/profile_keyed_service_factory.h" 10 #include "chrome/browser/profiles/profile_keyed_service_factory.h"
11 11
12 class Profile;
13
12 namespace predictors { 14 namespace predictors {
13 15
14 class AutocompleteActionPredictor; 16 class AutocompleteActionPredictor;
15 17
16 // Singleton that owns all AutocompleteActionPredictors and associates them with 18 // Singleton that owns all AutocompleteActionPredictors and associates them with
17 // Profiles. Listens for the Profile's destruction notification and cleans up 19 // Profiles. Listens for the Profile's destruction notification and cleans up
18 // the associated AutocompleteActionPredictor. 20 // the associated AutocompleteActionPredictor.
19 class AutocompleteActionPredictorFactory : public ProfileKeyedServiceFactory { 21 class AutocompleteActionPredictorFactory : public ProfileKeyedServiceFactory {
20 public: 22 public:
21 static AutocompleteActionPredictor* GetForProfile(Profile* profile); 23 static AutocompleteActionPredictor* GetForProfile(Profile* profile);
(...skipping 11 matching lines...) Expand all
33 content::BrowserContext* context) const OVERRIDE; 35 content::BrowserContext* context) const OVERRIDE;
34 virtual ProfileKeyedService* BuildServiceInstanceFor( 36 virtual ProfileKeyedService* BuildServiceInstanceFor(
35 content::BrowserContext* profile) const OVERRIDE; 37 content::BrowserContext* profile) const OVERRIDE;
36 38
37 DISALLOW_COPY_AND_ASSIGN(AutocompleteActionPredictorFactory); 39 DISALLOW_COPY_AND_ASSIGN(AutocompleteActionPredictorFactory);
38 }; 40 };
39 41
40 } // namespace predictors 42 } // namespace predictors
41 43
42 #endif // CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_FACTORY_H_ 44 #endif // CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698