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

Unified Diff: components/policy/core/common/cloud/external_policy_data_updater.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/external_policy_data_updater.h
diff --git a/chrome/browser/policy/cloud/external_policy_data_updater.h b/components/policy/core/common/cloud/external_policy_data_updater.h
similarity index 92%
rename from chrome/browser/policy/cloud/external_policy_data_updater.h
rename to components/policy/core/common/cloud/external_policy_data_updater.h
index 2ac776b7dd81b9121ff3cf8d526b450cb5ab07a8..78b6b7c6e998ae03c82470498b988cfb9512a54a 100644
--- a/chrome/browser/policy/cloud/external_policy_data_updater.h
+++ b/components/policy/core/common/cloud/external_policy_data_updater.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_EXTERNAL_POLICY_DATA_UPDATER_H_
-#define CHROME_BROWSER_POLICY_CLOUD_EXTERNAL_POLICY_DATA_UPDATER_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_EXTERNAL_POLICY_DATA_UPDATER_H_
+#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_EXTERNAL_POLICY_DATA_UPDATER_H_
#include <map>
#include <queue>
@@ -14,6 +14,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "components/policy/policy_export.h"
namespace base {
class SequencedTaskRunner;
@@ -31,9 +32,9 @@ class ExternalPolicyDataFetcher;
// with exponential backoff.
// The actual fetching is handled by an ExternalPolicyDataFetcher, allowing this
// class to run on a background thread where network I/O is not possible.
-class ExternalPolicyDataUpdater {
+class POLICY_EXPORT ExternalPolicyDataUpdater {
public:
- struct Request {
+ struct POLICY_EXPORT Request {
public:
Request();
Request(const std::string& url, const std::string& hash, int64 max_size);
@@ -123,4 +124,4 @@ class ExternalPolicyDataUpdater {
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_CLOUD_EXTERNAL_POLICY_DATA_UPDATER_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_EXTERNAL_POLICY_DATA_UPDATER_H_

Powered by Google App Engine
This is Rietveld 408576698