Index: chrome/browser/tab_contents/origins_seen_service_factory.h |
diff --git a/chrome/browser/tab_contents/origins_seen_service_factory.h b/chrome/browser/tab_contents/origins_seen_service_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c68c43d8e956b5d3237a71535335964fbbf8f566 |
--- /dev/null |
+++ b/chrome/browser/tab_contents/origins_seen_service_factory.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_TAB_CONTENTS_ORIGINS_SEEN_SERVICE_FACTORY_H_ |
+#define CHROME_BROWSER_TAB_CONTENTS_ORIGINS_SEEN_SERVICE_FACTORY_H_ |
+ |
+#include "base/memory/singleton.h" |
+#include "chrome/browser/tab_contents/origins_seen_service.h" |
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h" |
+ |
+class OriginsSeenService; |
+ |
+class OriginsSeenServiceFactory : public BrowserContextKeyedServiceFactory { |
+ public: |
+ static OriginsSeenService* GetForBrowserContext( |
+ content::BrowserContext* context); |
+ |
+ static OriginsSeenServiceFactory* GetInstance(); |
+ |
+ // Used to create instances for testing. |
+ static KeyedService* BuildInstanceFor(content::BrowserContext* context); |
+ |
+ private: |
+ friend struct base::DefaultSingletonTraits<OriginsSeenServiceFactory>; |
+ |
+ OriginsSeenServiceFactory(); |
+ ~OriginsSeenServiceFactory() override; |
+ |
+ // BrowserContextKeyedServiceFactory: |
+ KeyedService* BuildServiceInstanceFor( |
+ content::BrowserContext* profile) const override; |
Avi (use Gerrit)
2016/04/14 19:08:02
|context|, not |profile|.
palmer
2016/04/14 20:13:41
Done.
|
+}; |
+ |
+#endif // CHROME_BROWSER_TAB_CONTENTS_ORIGINS_SEEN_SERVICE_FACTORY_H_ |