BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / autocomplete / in_memory_url_index_factory.h
blob4f925e845175437ac4ed59c9d6b8b6eff26088da
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_IN_MEMORY_URL_INDEX_FACTORY_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_IN_MEMORY_URL_INDEX_FACTORY_H_
8 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
10 namespace base {
11 template <typename T> struct DefaultSingletonTraits;
14 class InMemoryURLIndex;
15 class Profile;
17 class InMemoryURLIndexFactory : public BrowserContextKeyedServiceFactory {
18 public:
19 static InMemoryURLIndex* GetForProfile(Profile* profile);
20 static InMemoryURLIndexFactory* GetInstance();
22 private:
23 friend struct base::DefaultSingletonTraits<InMemoryURLIndexFactory>;
25 InMemoryURLIndexFactory();
26 ~InMemoryURLIndexFactory() override;
28 // BrowserContextKeyedServiceFactory:
29 KeyedService* BuildServiceInstanceFor(
30 content::BrowserContext* context) const override;
31 content::BrowserContext* GetBrowserContextToUse(
32 content::BrowserContext* context) const override;
33 bool ServiceIsNULLWhileTesting() const override;
36 #endif // CHROME_BROWSER_AUTOCOMPLETE_IN_MEMORY_URL_INDEX_FACTORY_H_