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

Unified Diff: chrome/browser/policy/external_data_manager.h

Issue 19462006: Implement fetching, caching and retrieval of external policy data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 4 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/policy/external_data_fetcher.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/external_data_manager.h
diff --git a/chrome/browser/policy/external_data_manager.h b/chrome/browser/policy/external_data_manager.h
index 4c97f868e96f0ba905d33703bbbc6a112a360bdd..155a511051e1f850e48c224b30d1d29e4907adff 100644
--- a/chrome/browser/policy/external_data_manager.h
+++ b/chrome/browser/policy/external_data_manager.h
@@ -18,6 +18,14 @@ namespace policy {
// references.
class ExternalDataManager {
public:
+ // Retrieves the external data referenced by |policy| and invokes |callback|
+ // with the result. If |policy| does not reference any external data, the
+ // |callback| is invoked with a NULL pointer. Otherwise, the |callback| is
+ // invoked with the referenced data once it has been successfully retrieved.
+ // If retrieval is temporarily impossible (e.g. no network connectivity), the
+ // |callback| will be invoked when the temporary hindrance is resolved. If
+ // retrieval is permanently impossible (e.g. |policy| references data that
+ // does not exist on the server), the |callback| will never be invoked.
virtual void Fetch(const std::string& policy,
const ExternalDataFetcher::FetchCallback& callback) = 0;
};
« no previous file with comments | « chrome/browser/policy/external_data_fetcher.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698