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

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

Issue 2293153002: Remove stl_util's STLDeleteContainerPairFirstPointers. (Closed)
Patch Set: fixing Created 4 years, 3 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_BLACKLIST_STATE_FETCHER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_BLACKLIST_STATE_FETCHER_H_
6 #define CHROME_BROWSER_EXTENSIONS_BLACKLIST_STATE_FETCHER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_BLACKLIST_STATE_FETCHER_H_
7 7
8 #include <algorithm>
8 #include <memory> 9 #include <memory>
9 #include <set> 10 #include <set>
10 #include <string> 11 #include <string>
11 12
12 #include "base/callback.h" 13 #include "base/callback.h"
13 #include "base/macros.h" 14 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/safe_browsing/protocol_manager_helper.h" 16 #include "chrome/browser/safe_browsing/protocol_manager_helper.h"
16 #include "extensions/browser/blacklist_state.h" 17 #include "extensions/browser/blacklist_state.h"
17 #include "net/url_request/url_fetcher.h" 18 #include "net/url_request/url_fetcher.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void SendRequest(const std::string& id); 52 void SendRequest(const std::string& id);
52 53
53 // ID for URLFetchers for testing. 54 // ID for URLFetchers for testing.
54 int url_fetcher_id_; 55 int url_fetcher_id_;
55 56
56 std::unique_ptr<safe_browsing::SafeBrowsingProtocolConfig> 57 std::unique_ptr<safe_browsing::SafeBrowsingProtocolConfig>
57 safe_browsing_config_; 58 safe_browsing_config_;
58 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; 59 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
59 scoped_refptr<net::URLRequestContextGetter> parent_request_context_for_test_; 60 scoped_refptr<net::URLRequestContextGetter> parent_request_context_for_test_;
60 61
61 // Extension id by URLFetcher. 62 // URLFetcher -> (owned fetcher, extension id).
62 std::map<const net::URLFetcher*, std::string> requests_; 63 std::map<const net::URLFetcher*,
64 std::pair<std::unique_ptr<net::URLFetcher>, std::string>>
65 requests_;
63 66
64 // Callbacks by extension ID. 67 // Callbacks by extension ID.
65 CallbackMultiMap callbacks_; 68 CallbackMultiMap callbacks_;
66 69
67 base::WeakPtrFactory<BlacklistStateFetcher> weak_ptr_factory_; 70 base::WeakPtrFactory<BlacklistStateFetcher> weak_ptr_factory_;
68 71
69 DISALLOW_COPY_AND_ASSIGN(BlacklistStateFetcher); 72 DISALLOW_COPY_AND_ASSIGN(BlacklistStateFetcher);
70 }; 73 };
71 74
72 } // namespace extensions 75 } // namespace extensions
73 76
74 #endif // CHROME_BROWSER_EXTENSIONS_BLACKLIST_STATE_FETCHER_H_ 77 #endif // CHROME_BROWSER_EXTENSIONS_BLACKLIST_STATE_FETCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698