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

Side by Side Diff: chrome/browser/supervised_user/supervised_user_site_list.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SUPERVISED_USER_SUPERVISED_USER_SITE_LIST_H_ 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SITE_LIST_H_
6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SITE_LIST_H_ 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SITE_LIST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <array> 11 #include <array>
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/callback_forward.h" 16 #include "base/callback_forward.h"
17 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
18 #include "base/gtest_prod_util.h" 18 #include "base/gtest_prod_util.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "base/sha1.h" 21 #include "base/sha1.h"
22 #include "base/strings/string16.h" 22 #include "base/strings/string16.h"
23 #include "base/time/time.h" 23 #include "base/time/time.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 class Profile;
27
28 namespace base { 26 namespace base {
29 class DictionaryValue;
30 class ListValue; 27 class ListValue;
31 class Value; 28 class Value;
32 } 29 }
33 30
34 // This class represents the content of a supervised user whitelist. It is 31 // This class represents the content of a supervised user whitelist. It is
35 // loaded from a JSON file inside the extension bundle, which defines the sites 32 // loaded from a JSON file inside the extension bundle, which defines the sites
36 // on the list. 33 // on the list.
37 // All whitelists are combined in the SupervisedUserURLFilter, which can tell 34 // All whitelists are combined in the SupervisedUserURLFilter, which can tell
38 // for a given URL if it is part of any whitelist. Effectively, 35 // for a given URL if it is part of any whitelist. Effectively,
39 // SupervisedUserURLFilter then acts as a big whitelist which is the union of 36 // SupervisedUserURLFilter then acts as a big whitelist which is the union of
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // A list of URL patterns that should be whitelisted. 115 // A list of URL patterns that should be whitelisted.
119 std::vector<std::string> patterns_; 116 std::vector<std::string> patterns_;
120 117
121 // A list of SHA1 hashes of hostnames that should be whitelisted. 118 // A list of SHA1 hashes of hostnames that should be whitelisted.
122 std::vector<HostnameHash> hostname_hashes_; 119 std::vector<HostnameHash> hostname_hashes_;
123 120
124 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSiteList); 121 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSiteList);
125 }; 122 };
126 123
127 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SITE_LIST_H_ 124 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SITE_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698