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

Side by Side Diff: chrome/browser/extensions/api/discovery/suggested_links_registry.h

Issue 11740018: Cleanup: Remove more unneeded browser_thread.h includes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DISCOVERY_SUGGESTED_LINKS_REGISTRY_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DISCOVERY_SUGGESTED_LINKS_REGISTRY_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DISCOVERY_SUGGESTED_LINKS_REGISTRY_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DISCOVERY_SUGGESTED_LINKS_REGISTRY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/extensions/api/discovery/suggested_link.h" 11 #include "chrome/browser/extensions/api/discovery/suggested_link.h"
11 #include "chrome/browser/profiles/profile_keyed_service.h" 12 #include "chrome/browser/profiles/profile_keyed_service.h"
12 #include "content/public/browser/browser_thread.h"
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 // This class keeps track of links suggested by an extension using the discovery 16 // This class keeps track of links suggested by an extension using the discovery
17 // API. 17 // API.
18 class SuggestedLinksRegistry : public ProfileKeyedService { 18 class SuggestedLinksRegistry : public ProfileKeyedService {
19 public: 19 public:
20 // A list of ExtensionSuggestedLink's. 20 // A list of ExtensionSuggestedLink's.
21 typedef std::vector<linked_ptr<extensions::SuggestedLink> > SuggestedLinkList; 21 typedef std::vector<linked_ptr<extensions::SuggestedLink> > SuggestedLinkList;
22 22
(...skipping 30 matching lines...) Expand all
53 // An empty list of suggestions that can be returned for non-existing 53 // An empty list of suggestions that can be returned for non-existing
54 // extensions. 54 // extensions.
55 SuggestedLinkList empty_list_; 55 SuggestedLinkList empty_list_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(SuggestedLinksRegistry); 57 DISALLOW_COPY_AND_ASSIGN(SuggestedLinksRegistry);
58 }; 58 };
59 59
60 } // namespace extensions 60 } // namespace extensions
61 61
62 #endif // CHROME_BROWSER_EXTENSIONS_API_DISCOVERY_SUGGESTED_LINKS_REGISTRY_H_ 62 #endif // CHROME_BROWSER_EXTENSIONS_API_DISCOVERY_SUGGESTED_LINKS_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698