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

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

Issue 49253005: Fetch extension blacklist states from SafeBrowsing server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_EXTENSIONS_TEST_BLACKLIST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_
6 #define CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "chrome/browser/extensions/blacklist.h" 11 #include "chrome/browser/extensions/blacklist.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 // A wrapper for an extensions::Blacklist that provides functionality for 15 // A wrapper for an extensions::Blacklist that provides functionality for
16 // testing. 16 // testing.
17 class TestBlacklist { 17 class TestBlacklist {
18 public: 18 public:
19 explicit TestBlacklist(Blacklist* blacklist); 19 explicit TestBlacklist(Blacklist* blacklist);
20 20
21 Blacklist* blacklist() { return blacklist_; } 21 Blacklist* blacklist() { return blacklist_; }
22 22
23 Blacklist::BlacklistState GetBlacklistState(const std::string& extension_id); 23 BlacklistState GetBlacklistState(const std::string& extension_id);
24 24
25 private: 25 private:
26 Blacklist* blacklist_; 26 Blacklist* blacklist_;
27 27
28 DISALLOW_COPY_AND_ASSIGN(TestBlacklist); 28 DISALLOW_COPY_AND_ASSIGN(TestBlacklist);
29 }; 29 };
30 30
31 } // namespace extensions 31 } // namespace extensions
32 32
33 #endif // CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_ 33 #endif // CHROME_BROWSER_EXTENSIONS_TEST_BLACKLIST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/fake_safe_browsing_database_manager.cc ('k') | chrome/browser/extensions/test_blacklist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698