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

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

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 4 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"
(...skipping 21 matching lines...) Expand all
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698