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

Unified Diff: chrome/browser/extensions/api/discovery/suggested_links_registry.h

Issue 10438004: Hooking the discovery API to the NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added OWNERS for experimental discovery api. Created 8 years, 7 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/extensions/api/discovery/suggested_links_registry.h
diff --git a/chrome/browser/extensions/api/discovery/suggested_links_registry.h b/chrome/browser/extensions/api/discovery/suggested_links_registry.h
index 228a960692a20b5b60a40b2a0d9e87ef58e1081a..269e593aa3ad079c1d8c35994f7cfa9b28d26b9a 100644
--- a/chrome/browser/extensions/api/discovery/suggested_links_registry.h
+++ b/chrome/browser/extensions/api/discovery/suggested_links_registry.h
@@ -28,6 +28,9 @@ class SuggestedLinksRegistry : public ProfileKeyedService {
void Add(const std::string& extension_id,
scoped_ptr<extensions::SuggestedLink> item);
+ // Returns all the extension ids that have at least one suggestion.
+ scoped_ptr<std::vector<std::string> > GetExtensionIds() const;
+
// Returns all the links suggested by |extension_id|.
const SuggestedLinkList* GetAll(const std::string& extension_id) const;
« no previous file with comments | « chrome/browser/extensions/api/discovery/OWNERS ('k') | chrome/browser/extensions/api/discovery/suggested_links_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698