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

Unified Diff: components/policy/core/common/async_policy_provider.h

Issue 92263002: Move AsyncPolicyProvider, etc. to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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/async_policy_provider.h
diff --git a/chrome/browser/policy/async_policy_provider.h b/components/policy/core/common/async_policy_provider.h
similarity index 86%
rename from chrome/browser/policy/async_policy_provider.h
rename to components/policy/core/common/async_policy_provider.h
index 278fc59464b8ddfb81022f740b3010f1cac7f6ba..ac84587eb34e63ffc425aae501b6c8a9b01250f5 100644
--- a/chrome/browser/policy/async_policy_provider.h
+++ b/components/policy/core/common/async_policy_provider.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_ASYNC_POLICY_PROVIDER_H_
-#define CHROME_BROWSER_POLICY_ASYNC_POLICY_PROVIDER_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_PROVIDER_H_
+#define COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_PROVIDER_H_
#include "base/cancelable_callback.h"
#include "base/memory/ref_counted.h"
@@ -11,6 +11,7 @@
#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "components/policy/core/common/configuration_policy_provider.h"
+#include "components/policy/policy_export.h"
namespace base {
class MessageLoopProxy;
@@ -25,8 +26,8 @@ class SchemaRegistry;
// A policy provider that loads its policies asynchronously on a background
// thread. Platform-specific providers are created by passing an implementation
// of AsyncPolicyLoader to a new AsyncPolicyProvider.
-class AsyncPolicyProvider : public ConfigurationPolicyProvider,
- public base::NonThreadSafe {
+class POLICY_EXPORT AsyncPolicyProvider : public ConfigurationPolicyProvider,
+ public base::NonThreadSafe {
public:
// The AsyncPolicyProvider does a synchronous load in its constructor, and
// therefore it needs the |registry| at construction time. The same |registry|
@@ -72,4 +73,4 @@ class AsyncPolicyProvider : public ConfigurationPolicyProvider,
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_ASYNC_POLICY_PROVIDER_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_ASYNC_POLICY_PROVIDER_H_
« no previous file with comments | « components/policy/core/common/async_policy_loader.cc ('k') | components/policy/core/common/async_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698