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

Unified Diff: chrome/browser/accessibility/accessibility_notifier_factory.h

Issue 785723002: Add new extension APIs related to animation policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update code 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/accessibility/accessibility_notifier_factory.h
diff --git a/chrome/browser/accessibility/accessibility_notifier_factory.h b/chrome/browser/accessibility/accessibility_notifier_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..f79a596cce0a0432b73537eaf9887952415f1e93
--- /dev/null
+++ b/chrome/browser/accessibility/accessibility_notifier_factory.h
@@ -0,0 +1,35 @@
+// Copyright 2015 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_ACCESSIBILITY_ACCESSIBILITY_NOTIFIER_FACTORY_H_
+#define CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_NOTIFIER_FACTORY_H_
+
+#include "base/memory/singleton.h"
+#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
+
+class Profile;
+class AccessibilityNotifier;
+
+class AccessibilityNotifierFactory : public BrowserContextKeyedServiceFactory {
+ public:
+ static AccessibilityNotifierFactory* GetInstance();
+
+ static AccessibilityNotifier* GetForProfile(Profile* profile);
+
+ protected:
+ // BrowserContextKeyedServiceFactory:
+ KeyedService* BuildServiceInstanceFor(
+ content::BrowserContext* context) const override;
+
+ private:
+ friend struct DefaultSingletonTraits<AccessibilityNotifierFactory>;
+
+ AccessibilityNotifierFactory();
+ ~AccessibilityNotifierFactory() override;
+ bool ServiceIsCreatedWithBrowserContext() const override;
+
+ DISALLOW_COPY_AND_ASSIGN(AccessibilityNotifierFactory);
+};
+
+#endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_NOTIFIER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698