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

Unified Diff: components/policy/core/common/cloud/resource_cache.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/resource_cache.h
diff --git a/chrome/browser/policy/cloud/resource_cache.h b/components/policy/core/common/cloud/resource_cache.h
similarity index 92%
rename from chrome/browser/policy/cloud/resource_cache.h
rename to components/policy/core/common/cloud/resource_cache.h
index 1519a458c416be1f369fd112ebe1143bbbb59246..d6dbbab6f043b9ff71d7c4774deac7c9e6046f6a 100644
--- a/chrome/browser/policy/cloud/resource_cache.h
+++ b/components/policy/core/common/cloud/resource_cache.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_RESOURCE_CACHE_H_
-#define CHROME_BROWSER_POLICY_CLOUD_RESOURCE_CACHE_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_RESOURCE_CACHE_H_
+#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_RESOURCE_CACHE_H_
#include <map>
#include <set>
@@ -13,6 +13,7 @@
#include "base/callback_forward.h"
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
+#include "components/policy/policy_export.h"
namespace base {
class SequencedTaskRunner;
@@ -26,7 +27,7 @@ namespace policy {
// Purge*().
// The class can be instantiated on any thread but from then on, it must be
// accessed via the |task_runner| only. The |task_runner| must support file I/O.
-class ResourceCache {
+class POLICY_EXPORT ResourceCache {
public:
explicit ResourceCache(const base::FilePath& cache_path,
scoped_refptr<base::SequencedTaskRunner> task_runner);
@@ -93,4 +94,4 @@ class ResourceCache {
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_CLOUD_RESOURCE_CACHE_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_RESOURCE_CACHE_H_
« no previous file with comments | « components/policy/core/common/cloud/rate_limiter_unittest.cc ('k') | components/policy/core/common/cloud/resource_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698