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

Unified Diff: components/policy/core/common/policy_loader_win.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/policy_loader_win.h
diff --git a/chrome/browser/policy/policy_loader_win.h b/components/policy/core/common/policy_loader_win.h
similarity index 91%
rename from chrome/browser/policy/policy_loader_win.h
rename to components/policy/core/common/policy_loader_win.h
index eb5387cae5c9b44989dab58bd32b2075e4ce87ae..4e86b0c4e4c6578b658f6cc78c4abe4d76325998 100644
--- a/chrome/browser/policy/policy_loader_win.h
+++ b/components/policy/core/common/policy_loader_win.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_POLICY_LOADER_WIN_H_
-#define CHROME_BROWSER_POLICY_POLICY_LOADER_WIN_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_LOADER_WIN_H_
+#define COMPONENTS_POLICY_CORE_COMMON_POLICY_LOADER_WIN_H_
#include <windows.h>
#include <userenv.h>
@@ -18,6 +18,7 @@
#include "base/win/object_watcher.h"
#include "components/policy/core/common/async_policy_loader.h"
#include "components/policy/core/common/policy_types.h"
+#include "components/policy/policy_export.h"
namespace base {
class SequencedTaskRunner;
@@ -31,7 +32,7 @@ class PolicyMap;
class RegistryDict;
// Interface for mocking out GPO enumeration in tests.
-class AppliedGPOListProvider {
+class POLICY_EXPORT AppliedGPOListProvider {
public:
virtual ~AppliedGPOListProvider() {}
virtual DWORD GetAppliedGPOList(DWORD flags,
@@ -44,8 +45,9 @@ class AppliedGPOListProvider {
// Loads policies from the Windows registry, and watches for Group Policy
// notifications to trigger reloads.
-class PolicyLoaderWin : public AsyncPolicyLoader,
- public base::win::ObjectWatcher::Delegate {
+class POLICY_EXPORT PolicyLoaderWin
+ : public AsyncPolicyLoader,
+ public base::win::ObjectWatcher::Delegate {
public:
// The PReg file name used by GPO.
static const base::FilePath::CharType kPRegFileName[];
@@ -125,4 +127,4 @@ class PolicyLoaderWin : public AsyncPolicyLoader,
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_POLICY_LOADER_WIN_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_LOADER_WIN_H_
« no previous file with comments | « components/policy/core/common/policy_loader_mac_unittest.cc ('k') | components/policy/core/common/policy_loader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698