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

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

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 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
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_FAKE_SAFE_BROWSING_DATABASE_MANAGER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_FAKE_SAFE_BROWSING_DATABASE_MANAGER_H_
6 #define CHROME_BROWSER_EXTENSIONS_FAKE_SAFE_BROWSING_DATABASE_MANAGER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_FAKE_SAFE_BROWSING_DATABASE_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 FakeSafeBrowsingDatabaseManager& AddUnsafe(const std::string& a); 44 FakeSafeBrowsingDatabaseManager& AddUnsafe(const std::string& a);
45 FakeSafeBrowsingDatabaseManager& RemoveUnsafe(const std::string& a); 45 FakeSafeBrowsingDatabaseManager& RemoveUnsafe(const std::string& a);
46 46
47 // Send the update notification. 47 // Send the update notification.
48 void NotifyUpdate(); 48 void NotifyUpdate();
49 49
50 private: 50 private:
51 ~FakeSafeBrowsingDatabaseManager() override; 51 ~FakeSafeBrowsingDatabaseManager() override;
52 52
53 // Runs result->SafeBrowsingResult(). 53 // Runs result->SafeBrowsingResult().
54 void OnSafeBrowsingResult(scoped_ptr<SafeBrowsingCheck> result); 54 void OnSafeBrowsingResult(std::unique_ptr<SafeBrowsingCheck> result);
55 55
56 // Whether to respond to CheckExtensionIDs immediately with true (indicating 56 // Whether to respond to CheckExtensionIDs immediately with true (indicating
57 // that there is definitely no extension ID match). 57 // that there is definitely no extension ID match).
58 bool enabled_; 58 bool enabled_;
59 59
60 // The extension IDs considered unsafe. 60 // The extension IDs considered unsafe.
61 std::set<std::string> unsafe_ids_; 61 std::set<std::string> unsafe_ids_;
62 }; 62 };
63 63
64 } // namespace extensions 64 } // namespace extensions
65 65
66 #endif // CHROME_BROWSER_EXTENSIONS_FAKE_SAFE_BROWSING_DATABASE_MANAGER_H_ 66 #endif // CHROME_BROWSER_EXTENSIONS_FAKE_SAFE_BROWSING_DATABASE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698