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

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

Issue 78763002: Move PolicyMap and its dependencies to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested struct Created 7 years, 1 month 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/policy/external_data_manager.h
diff --git a/chrome/browser/policy/external_data_manager.h b/chrome/browser/policy/external_data_manager.h
deleted file mode 100644
index 155a511051e1f850e48c224b30d1d29e4907adff..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/external_data_manager.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2013 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_POLICY_EXTERNAL_DATA_MANAGER_H_
-#define CHROME_BROWSER_POLICY_EXTERNAL_DATA_MANAGER_H_
-
-#include <string>
-
-#include "chrome/browser/policy/external_data_fetcher.h"
-
-namespace policy {
-
-// Downloads, verifies, caches and retrieves external data referenced by
-// policies.
-// An implementation of this abstract interface should be provided for each
-// policy source (cloud policy, platform policy) that supports external data
-// 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;
-};
-
-} // namespace policy
-
-#endif // CHROME_BROWSER_POLICY_EXTERNAL_DATA_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698