OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EXTENSIONS_BLACKLIST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_BLACKLIST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_BLACKLIST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_BLACKLIST_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
18 #include "chrome/browser/extensions/blacklist_state.h" | |
19 #include "chrome/browser/safe_browsing/database_manager.h" | 18 #include "chrome/browser/safe_browsing/database_manager.h" |
20 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
21 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
| 21 #include "extensions/browser/blacklist_state.h" |
22 | 22 |
23 namespace extensions { | 23 namespace extensions { |
24 | 24 |
25 class BlacklistStateFetcher; | 25 class BlacklistStateFetcher; |
26 class Extension; | 26 class Extension; |
27 class ExtensionPrefs; | 27 class ExtensionPrefs; |
28 | 28 |
29 // The blacklist of extensions backed by safe browsing. | 29 // The blacklist of extensions backed by safe browsing. |
30 class Blacklist : public content::NotificationObserver, | 30 class Blacklist : public content::NotificationObserver, |
31 public base::SupportsWeakPtr<Blacklist> { | 31 public base::SupportsWeakPtr<Blacklist> { |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // GetBlacklistedIDs and deleted when the callback is called from | 145 // GetBlacklistedIDs and deleted when the callback is called from |
146 // OnBlacklistStateReceived. | 146 // OnBlacklistStateReceived. |
147 StateRequestsList state_requests_; | 147 StateRequestsList state_requests_; |
148 | 148 |
149 DISALLOW_COPY_AND_ASSIGN(Blacklist); | 149 DISALLOW_COPY_AND_ASSIGN(Blacklist); |
150 }; | 150 }; |
151 | 151 |
152 } // namespace extensions | 152 } // namespace extensions |
153 | 153 |
154 #endif // CHROME_BROWSER_EXTENSIONS_BLACKLIST_H_ | 154 #endif // CHROME_BROWSER_EXTENSIONS_BLACKLIST_H_ |
OLD | NEW |