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

Unified Diff: chrome/browser/win/jumplist_factory.h

Issue 2323603002: Convert JumpList to a KeyedService. (Closed)
Patch Set: Clang fixes Created 4 years, 3 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
« no previous file with comments | « chrome/browser/win/jumplist.cc ('k') | chrome/browser/win/jumplist_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/win/jumplist_factory.h
diff --git a/chrome/browser/win/jumplist_factory.h b/chrome/browser/win/jumplist_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..5f8c1c80180dc5fdf67eebf8ddd68570879ac593
--- /dev/null
+++ b/chrome/browser/win/jumplist_factory.h
@@ -0,0 +1,28 @@
+// 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_WIN_JUMPLIST_FACTORY_H_
+#define CHROME_BROWSER_WIN_JUMPLIST_FACTORY_H_
+
+#include "base/memory/singleton.h"
+#include "chrome/browser/win/jumplist.h"
+#include "components/keyed_service/content/refcounted_browser_context_keyed_service_factory.h"
+
+class JumpListFactory : public RefcountedBrowserContextKeyedServiceFactory {
+ public:
+ static scoped_refptr<JumpList> GetForProfile(Profile* profile);
+
+ static JumpListFactory* GetInstance();
+
+ private:
+ friend struct base::DefaultSingletonTraits<JumpListFactory>;
+ JumpListFactory();
+ ~JumpListFactory() override;
+
+ // BrowserContextKeyedServiceFactory:
+ scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor(
+ content::BrowserContext* context) const override;
+};
+
+#endif // CHROME_BROWSER_WIN_JUMPLIST_FACTORY_H_
« no previous file with comments | « chrome/browser/win/jumplist.cc ('k') | chrome/browser/win/jumplist_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698