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

Unified Diff: components/policy/core/common/cloud/cloud_external_data_manager.h

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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: components/policy/core/common/cloud/cloud_external_data_manager.h
diff --git a/chrome/browser/policy/cloud/cloud_external_data_manager.h b/components/policy/core/common/cloud/cloud_external_data_manager.h
similarity index 84%
rename from chrome/browser/policy/cloud/cloud_external_data_manager.h
rename to components/policy/core/common/cloud/cloud_external_data_manager.h
index 112312d0ba5463917591989c42b68d725971609f..a5b8eca9fef77a8d9e781e1e949d1ad2a1969c32 100644
--- a/chrome/browser/policy/cloud/cloud_external_data_manager.h
+++ b/components/policy/core/common/cloud/cloud_external_data_manager.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_POLICY_CLOUD_CLOUD_EXTERNAL_DATA_MANAGER_H_
-#define CHROME_BROWSER_POLICY_CLOUD_CLOUD_EXTERNAL_DATA_MANAGER_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_EXTERNAL_DATA_MANAGER_H_
+#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_EXTERNAL_DATA_MANAGER_H_
#include <map>
#include <string>
@@ -12,6 +12,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "components/policy/core/common/external_data_manager.h"
+#include "components/policy/policy_export.h"
namespace net {
class URLRequestContextGetter;
@@ -24,9 +25,9 @@ class CloudPolicyStore;
// Downloads, verifies, caches and retrieves external data referenced by
// policies.
// This a common base class used by cloud policy implementations and mocks.
-class CloudExternalDataManager : public ExternalDataManager {
+class POLICY_EXPORT CloudExternalDataManager : public ExternalDataManager {
public:
- struct MetadataEntry {
+ struct POLICY_EXPORT MetadataEntry {
MetadataEntry();
MetadataEntry(const std::string& url, const std::string& hash);
@@ -71,4 +72,4 @@ class CloudExternalDataManager : public ExternalDataManager {
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_EXTERNAL_DATA_MANAGER_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_EXTERNAL_DATA_MANAGER_H_
« no previous file with comments | « components/policy/core/common/DEPS ('k') | components/policy/core/common/cloud/cloud_external_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698