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

Side by Side Diff: chrome/browser/managed_mode/managed_mode_url_filter.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_URL_FILTER_H_ 5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_URL_FILTER_H_
6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_URL_FILTER_H_ 6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_URL_FILTER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "base/threading/non_thread_safe.h" 13 #include "base/threading/non_thread_safe.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/managed_mode/managed_mode_site_list.h" 15 #include "chrome/browser/managed_mode/managed_mode_site_list.h"
16 #include "chrome/browser/policy/url_blacklist_manager.h" 16 #include "chrome/browser/policy/url_blacklist_manager.h"
17 17
18 namespace policy { 18 namespace policy {
19 class URLBlacklist; 19 class URLBlacklist;
20 } // namespace policy 20 } // namespace policy
21 21
22 class FilePath;
23 class GURL; 22 class GURL;
24 23
25 // This class manages the filtering behavior for a given URL, i.e. it tells 24 // This class manages the filtering behavior for a given URL, i.e. it tells
26 // callers if a given URL should be allowed, blocked or warned about. 25 // callers if a given URL should be allowed, blocked or warned about.
27 // References to it can be passed around on different threads (the refcounting 26 // References to it can be passed around on different threads (the refcounting
28 // is thread-safe), but the object itself should always be accessed on the same 27 // is thread-safe), but the object itself should always be accessed on the same
29 // thread (member access isn't thread-safe). 28 // thread (member access isn't thread-safe).
30 class ManagedModeURLFilter 29 class ManagedModeURLFilter
31 : public base::RefCountedThreadSafe<ManagedModeURLFilter>, 30 : public base::RefCountedThreadSafe<ManagedModeURLFilter>,
32 public base::NonThreadSafe { 31 public base::NonThreadSafe {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // The |url_manual_list_allow_| blocks all URLs except the ones that are 93 // The |url_manual_list_allow_| blocks all URLs except the ones that are
95 // added while the |url_manual_list_block_| blocks only the URLs that are 94 // added while the |url_manual_list_block_| blocks only the URLs that are
96 // added to it. 95 // added to it.
97 scoped_ptr<policy::URLBlacklist> url_manual_list_allow_; 96 scoped_ptr<policy::URLBlacklist> url_manual_list_allow_;
98 scoped_ptr<policy::URLBlacklist> url_manual_list_block_; 97 scoped_ptr<policy::URLBlacklist> url_manual_list_block_;
99 98
100 DISALLOW_COPY_AND_ASSIGN(ManagedModeURLFilter); 99 DISALLOW_COPY_AND_ASSIGN(ManagedModeURLFilter);
101 }; 100 };
102 101
103 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_URL_FILTER_H_ 102 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_URL_FILTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/jumplist_win.h ('k') | chrome/browser/media_gallery/linux/mtp_device_delegate_impl_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698