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

Unified Diff: chrome/browser/safe_browsing/protocol_manager.h

Issue 392010: Fix a crash during shutdown where SafeBrowsingProtocolManager could end up getting back NULL for Pro (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix some nits Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/protocol_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/protocol_manager.h
===================================================================
--- chrome/browser/safe_browsing/protocol_manager.h (revision 31723)
+++ chrome/browser/safe_browsing/protocol_manager.h (working copy)
@@ -48,10 +48,13 @@
FRIEND_TEST(SafeBrowsingProtocolManagerTest, TestGetHashBackOffTimes);
public:
+ // Constructs a SafeBrowsingProtocolManager for |sb_service| that issues
+ // network requests using |request_context_getter|.
SafeBrowsingProtocolManager(SafeBrowsingService* sb_service,
const std::string& client_name,
const std::string& client_key,
- const std::string& wrapped_key);
+ const std::string& wrapped_key,
+ URLRequestContextGetter* request_context_getter);
~SafeBrowsingProtocolManager();
// Set up the update schedule and internal state for making periodic requests
@@ -236,6 +239,9 @@
// The safe browsing client name sent in each request.
std::string client_name_;
+ // The context we use to issue network requests.
+ scoped_refptr<URLRequestContextGetter> request_context_getter_;
+
DISALLOW_COPY_AND_ASSIGN(SafeBrowsingProtocolManager);
};
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698