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

Side by Side Diff: chrome/browser/ui/search/new_tab_page_interceptor_service_factory.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_UI_SEARCH_NEW_TAB_PAGE_INTERCEPTOR_SERVICE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_NEW_TAB_PAGE_INTERCEPTOR_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_UI_SEARCH_NEW_TAB_PAGE_INTERCEPTOR_SERVICE_FACTORY_H_ 6 #define CHROME_BROWSER_UI_SEARCH_NEW_TAB_PAGE_INTERCEPTOR_SERVICE_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
11 #include "components/keyed_service/core/keyed_service.h" 11 #include "components/keyed_service/core/keyed_service.h"
12 12
13 class NewTabPageInterceptorService; 13 class NewTabPageInterceptorService;
14 class Profile; 14 class Profile;
15 15
16 namespace content { 16 namespace content {
17 class BrowserContext; 17 class BrowserContext;
18 } 18 }
19 19
20 namespace net {
21 class URLRequestInterceptor;
22 }
23
24 // Owns and creates NewTabPageInterceptorService instances. 20 // Owns and creates NewTabPageInterceptorService instances.
25 class NewTabPageInterceptorServiceFactory 21 class NewTabPageInterceptorServiceFactory
26 : public BrowserContextKeyedServiceFactory { 22 : public BrowserContextKeyedServiceFactory {
27 public: 23 public:
28 static NewTabPageInterceptorService* GetForProfile(Profile* profile); 24 static NewTabPageInterceptorService* GetForProfile(Profile* profile);
29 static NewTabPageInterceptorServiceFactory* GetInstance(); 25 static NewTabPageInterceptorServiceFactory* GetInstance();
30 26
31 private: 27 private:
32 friend struct base::DefaultSingletonTraits< 28 friend struct base::DefaultSingletonTraits<
33 NewTabPageInterceptorServiceFactory>; 29 NewTabPageInterceptorServiceFactory>;
34 30
35 NewTabPageInterceptorServiceFactory(); 31 NewTabPageInterceptorServiceFactory();
36 ~NewTabPageInterceptorServiceFactory() override; 32 ~NewTabPageInterceptorServiceFactory() override;
37 33
38 // BrowserContextKeyedServiceFactory: 34 // BrowserContextKeyedServiceFactory:
39 KeyedService* BuildServiceInstanceFor( 35 KeyedService* BuildServiceInstanceFor(
40 content::BrowserContext* context) const override; 36 content::BrowserContext* context) const override;
41 37
42 DISALLOW_COPY_AND_ASSIGN(NewTabPageInterceptorServiceFactory); 38 DISALLOW_COPY_AND_ASSIGN(NewTabPageInterceptorServiceFactory);
43 }; 39 };
44 40
45 #endif // CHROME_BROWSER_UI_SEARCH_NEW_TAB_PAGE_INTERCEPTOR_SERVICE_FACTORY_H_ 41 #endif // CHROME_BROWSER_UI_SEARCH_NEW_TAB_PAGE_INTERCEPTOR_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_test_utils.h ('k') | chrome/browser/ui/search/search_tab_helper_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698