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

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

Issue 102973005: Move URLBlacklistManager to components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fixed linkage of policy_component 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
« no previous file with comments | « components/policy/core/DEPS ('k') | components/policy/core/common/url_blacklist_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/url_blacklist_manager.h
diff --git a/chrome/browser/policy/url_blacklist_manager.h b/components/policy/core/common/url_blacklist_manager.h
similarity index 96%
rename from chrome/browser/policy/url_blacklist_manager.h
rename to components/policy/core/common/url_blacklist_manager.h
index b4262e4dbae21c9bea610d87150d454b85704206..0da337cd0135b93cd6cf70418cc115c719ff10b1 100644
--- a/chrome/browser/policy/url_blacklist_manager.h
+++ b/components/policy/core/common/url_blacklist_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_URL_BLACKLIST_MANAGER_H_
-#define CHROME_BROWSER_POLICY_URL_BLACKLIST_MANAGER_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_URL_BLACKLIST_MANAGER_H_
+#define COMPONENTS_POLICY_CORE_COMMON_URL_BLACKLIST_MANAGER_H_
#include <map>
#include <string>
@@ -16,6 +16,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/prefs/pref_change_registrar.h"
+#include "components/policy/policy_export.h"
#include "components/url_matcher/url_matcher.h"
#include "url/gurl.h"
@@ -38,7 +39,7 @@ namespace policy {
// Contains a set of filters to block and allow certain URLs, and matches GURLs
// against this set. The filters are currently kept in memory.
-class URLBlacklist {
+class POLICY_EXPORT URLBlacklist {
public:
// This is meant to be bound to URLFixerUpper::SegmentURL. See that function
// for documentation on the parameters and return value.
@@ -128,7 +129,7 @@ class URLBlacklist {
// exists in UI, then a potential destruction on IO will come after any task
// posted to IO from that method on UI. This is used to go through IO before
// the actual update starts, and grab a WeakPtr.
-class URLBlacklistManager {
+class POLICY_EXPORT URLBlacklistManager {
public:
// Returns true if the blacklist should be skipped for |url|.
typedef bool (*SkipBlacklistCallback)(const GURL& url);
@@ -223,4 +224,4 @@ class URLBlacklistManager {
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_URL_BLACKLIST_MANAGER_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_URL_BLACKLIST_MANAGER_H_
« no previous file with comments | « components/policy/core/DEPS ('k') | components/policy/core/common/url_blacklist_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698