Index: chrome/browser/ui/desktop_ios_promotion/sms_service_factory.h |
diff --git a/chrome/browser/ui/desktop_ios_promotion/sms_service_factory.h b/chrome/browser/ui/desktop_ios_promotion/sms_service_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6f75353a74c6fa9a2f4bff5ec22f4e3ef1f8e3db |
--- /dev/null |
+++ b/chrome/browser/ui/desktop_ios_promotion/sms_service_factory.h |
@@ -0,0 +1,41 @@ |
+// Copyright (c) 2012 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_UI_DESKTOP_IOS_PROMOTION_SMS_SERVICE_FACTORY_H_ |
+#define CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_SMS_SERVICE_FACTORY_H_ |
+ |
+#include "base/macros.h" |
+#include "base/memory/singleton.h" |
+#include "chrome/browser/profiles/profile.h" |
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h" |
+ |
+namespace DesktopIOSPromotion { |
+ |
+class SMSService; |
+ |
+class SMSServiceFactory : public BrowserContextKeyedServiceFactory { |
+ public: |
+ // Get the singleton instance of the factory. |
+ static SMSServiceFactory* GetInstance(); |
+ |
+ // Get the SMSService for |profile|, creating one if needed. |
+ static SMSService* GetForProfile(Profile* profile); |
+ |
+ protected: |
+ // Overridden from BrowserContextKeyedServiceFactory. |
+ KeyedService* BuildServiceInstanceFor( |
+ content::BrowserContext* context) const override; |
+ |
+ private: |
+ friend struct base::DefaultSingletonTraits<SMSServiceFactory>; |
+ |
+ SMSServiceFactory(); |
+ ~SMSServiceFactory() override; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(SMSServiceFactory); |
+}; |
+ |
+} // namespace DesktopIOSPromotion |
+ |
+#endif // CHROME_BROWSER_UI_DESKTOP_IOS_PROMOTION_SMS_SERVICE_FACTORY_H_ |