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

Unified Diff: chrome/browser/managed_mode_url_filter.h

Issue 11027017: Move ManagedMode classes to chrome/browser/managed_mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 2 months 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 | « chrome/browser/managed_mode_unittest.cc ('k') | chrome/browser/managed_mode_url_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/managed_mode_url_filter.h
diff --git a/chrome/browser/managed_mode_url_filter.h b/chrome/browser/managed_mode_url_filter.h
deleted file mode 100644
index 42f6eaca73c9ebb0e26f10599c3592893b5be639..0000000000000000000000000000000000000000
--- a/chrome/browser/managed_mode_url_filter.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_MANAGED_MODE_URL_FILTER_H_
-#define CHROME_BROWSER_MANAGED_MODE_URL_FILTER_H_
-
-#include "base/callback_forward.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/scoped_vector.h"
-#include "base/memory/weak_ptr.h"
-#include "base/threading/non_thread_safe.h"
-#include "base/values.h"
-
-class FilePath;
-class GURL;
-
-namespace extensions {
-class URLMatcher;
-}
-
-class ManagedModeURLFilter : public base::NonThreadSafe {
- public:
- ManagedModeURLFilter();
- ~ManagedModeURLFilter();
-
- // Returns true if the URL is matched by the filter.
- bool IsURLWhitelisted(const GURL& url) const;
-
- // Sets whether the filter is active or not (default is inactive).
- // If the filter is inactive, the whitelist will match any URL.
- void SetActive(bool in_managed_mode);
-
- // Sets the whitelist from the passed in list of |patterns|.
- void SetWhitelist(const std::vector<std::string>& patterns,
- const base::Closure& continuation);
-
- private:
- void SetURLMatcher(const base::Closure& callback,
- scoped_ptr<extensions::URLMatcher> url_matcher);
-
- base::WeakPtrFactory<ManagedModeURLFilter> weak_ptr_factory_;
- bool active_;
- scoped_ptr<extensions::URLMatcher> url_matcher_;
-
- DISALLOW_COPY_AND_ASSIGN(ManagedModeURLFilter);
-};
-
-#endif // CHROME_BROWSER_MANAGED_MODE_URL_FILTER_H_
« no previous file with comments | « chrome/browser/managed_mode_unittest.cc ('k') | chrome/browser/managed_mode_url_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698