| OLD | NEW |
| 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" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 public: | 32 public: |
| 33 enum FilteringBehavior { | 33 enum FilteringBehavior { |
| 34 ALLOW, | 34 ALLOW, |
| 35 WARN, | 35 WARN, |
| 36 BLOCK, | 36 BLOCK, |
| 37 HISTOGRAM_BOUNDING_VALUE | 37 HISTOGRAM_BOUNDING_VALUE |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 class Observer { | 40 class Observer { |
| 41 public: | 41 public: |
| 42 virtual ~Observer() { } |
| 43 |
| 42 virtual void OnSiteListUpdated() = 0; | 44 virtual void OnSiteListUpdated() = 0; |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 struct Contents; | 47 struct Contents; |
| 46 | 48 |
| 47 ManagedModeURLFilter(); | 49 ManagedModeURLFilter(); |
| 48 | 50 |
| 49 static FilteringBehavior BehaviorFromInt(int behavior_value); | 51 static FilteringBehavior BehaviorFromInt(int behavior_value); |
| 50 | 52 |
| 51 void GetSites(const GURL& url, | 53 void GetSites(const GURL& url, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // The |url_manual_list_allow_| blocks all URLs except the ones that are | 95 // The |url_manual_list_allow_| blocks all URLs except the ones that are |
| 94 // added while the |url_manual_list_block_| blocks only the URLs that are | 96 // added while the |url_manual_list_block_| blocks only the URLs that are |
| 95 // added to it. | 97 // added to it. |
| 96 scoped_ptr<policy::URLBlacklist> url_manual_list_allow_; | 98 scoped_ptr<policy::URLBlacklist> url_manual_list_allow_; |
| 97 scoped_ptr<policy::URLBlacklist> url_manual_list_block_; | 99 scoped_ptr<policy::URLBlacklist> url_manual_list_block_; |
| 98 | 100 |
| 99 DISALLOW_COPY_AND_ASSIGN(ManagedModeURLFilter); | 101 DISALLOW_COPY_AND_ASSIGN(ManagedModeURLFilter); |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_URL_FILTER_H_ | 104 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_MODE_URL_FILTER_H_ |
| OLD | NEW |