| 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 <memory> | 10 #include <memory> | 
| (...skipping 11 matching lines...) Expand all  Loading... | 
| 22 #include "content/public/browser/notification_registrar.h" | 22 #include "content/public/browser/notification_registrar.h" | 
| 23 #include "extensions/browser/blacklist_state.h" | 23 #include "extensions/browser/blacklist_state.h" | 
| 24 | 24 | 
| 25 namespace content { | 25 namespace content { | 
| 26 class BrowserContext; | 26 class BrowserContext; | 
| 27 } | 27 } | 
| 28 | 28 | 
| 29 namespace extensions { | 29 namespace extensions { | 
| 30 | 30 | 
| 31 class BlacklistStateFetcher; | 31 class BlacklistStateFetcher; | 
| 32 class Extension; |  | 
| 33 class ExtensionPrefs; | 32 class ExtensionPrefs; | 
| 34 | 33 | 
| 35 // The blacklist of extensions backed by safe browsing. | 34 // The blacklist of extensions backed by safe browsing. | 
| 36 class Blacklist : public KeyedService, | 35 class Blacklist : public KeyedService, | 
| 37                   public content::NotificationObserver, | 36                   public content::NotificationObserver, | 
| 38                   public base::SupportsWeakPtr<Blacklist> { | 37                   public base::SupportsWeakPtr<Blacklist> { | 
| 39  public: | 38  public: | 
| 40   class Observer { | 39   class Observer { | 
| 41    public: | 40    public: | 
| 42     // Observes |blacklist| on construction and unobserves on destruction. | 41     // Observes |blacklist| on construction and unobserves on destruction. | 
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 157   // GetBlacklistedIDs and deleted when the callback is called from | 156   // GetBlacklistedIDs and deleted when the callback is called from | 
| 158   // OnBlacklistStateReceived. | 157   // OnBlacklistStateReceived. | 
| 159   StateRequestsList state_requests_; | 158   StateRequestsList state_requests_; | 
| 160 | 159 | 
| 161   DISALLOW_COPY_AND_ASSIGN(Blacklist); | 160   DISALLOW_COPY_AND_ASSIGN(Blacklist); | 
| 162 }; | 161 }; | 
| 163 | 162 | 
| 164 }  // namespace extensions | 163 }  // namespace extensions | 
| 165 | 164 | 
| 166 #endif  // CHROME_BROWSER_EXTENSIONS_BLACKLIST_H_ | 165 #endif  // CHROME_BROWSER_EXTENSIONS_BLACKLIST_H_ | 
| OLD | NEW | 
|---|