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

Side by Side Diff: chrome/browser/extensions/blacklist.h

Issue 98463005: Enable/disable extensions upon changes in blacklist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/extensions/blacklist_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/blacklist_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698