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

Side by Side Diff: ios/chrome/browser/suggestions/suggestions_service_factory.h

Issue 840813009: Enable strict-virtual-specifiers for iOS builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 IOS_CHROME_BROWSER_SUGGESTIONS_SUGGESTIONS_SERVICE_FACTORY_H_ 5 #ifndef IOS_CHROME_BROWSER_SUGGESTIONS_SUGGESTIONS_SERVICE_FACTORY_H_
6 #define IOS_CHROME_BROWSER_SUGGESTIONS_SUGGESTIONS_SERVICE_FACTORY_H_ 6 #define IOS_CHROME_BROWSER_SUGGESTIONS_SUGGESTIONS_SERVICE_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/keyed_service/ios/browser_state_keyed_service_factory.h" 9 #include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
10 10
(...skipping 15 matching lines...) Expand all
26 static SuggestionsServiceFactory* GetInstance(); 26 static SuggestionsServiceFactory* GetInstance();
27 27
28 // Returns the SuggestionsService for |browser_state|. 28 // Returns the SuggestionsService for |browser_state|.
29 static SuggestionsService* GetForBrowserState( 29 static SuggestionsService* GetForBrowserState(
30 web::BrowserState* browser_state); 30 web::BrowserState* browser_state);
31 31
32 private: 32 private:
33 friend struct DefaultSingletonTraits<SuggestionsServiceFactory>; 33 friend struct DefaultSingletonTraits<SuggestionsServiceFactory>;
34 34
35 SuggestionsServiceFactory(); 35 SuggestionsServiceFactory();
36 ~SuggestionsServiceFactory(); 36 ~SuggestionsServiceFactory() override;
37 37
38 // BrowserStateKeyedServiceFactory: 38 // BrowserStateKeyedServiceFactory:
39 KeyedService* BuildServiceInstanceFor( 39 KeyedService* BuildServiceInstanceFor(
40 web::BrowserState* browser_state) const override; 40 web::BrowserState* browser_state) const override;
41 void RegisterProfilePrefs( 41 void RegisterProfilePrefs(
42 user_prefs::PrefRegistrySyncable* registry) override; 42 user_prefs::PrefRegistrySyncable* registry) override;
43 43
44 DISALLOW_COPY_AND_ASSIGN(SuggestionsServiceFactory); 44 DISALLOW_COPY_AND_ASSIGN(SuggestionsServiceFactory);
45 }; 45 };
46 46
47 } // namespace suggestions 47 } // namespace suggestions
48 48
49 #endif // IOS_CHROME_BROWSER_SUGGESTIONS_SUGGESTIONS_SERVICE_FACTORY_H_ 49 #endif // IOS_CHROME_BROWSER_SUGGESTIONS_SUGGESTIONS_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « content/public/browser/resource_context.h ('k') | ios/public/test/fake_profile_oauth2_token_service_ios_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698