| OLD | NEW |
| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 virtual void Request(const std::string& id, const RequestCallback& callback); | 33 virtual void Request(const std::string& id, const RequestCallback& callback); |
| 34 | 34 |
| 35 void SetSafeBrowsingConfig(const SafeBrowsingProtocolConfig& config); | 35 void SetSafeBrowsingConfig(const SafeBrowsingProtocolConfig& config); |
| 36 | 36 |
| 37 void SetURLRequestContextForTest( | 37 void SetURLRequestContextForTest( |
| 38 net::URLRequestContextGetter* parent_request_context); | 38 net::URLRequestContextGetter* parent_request_context); |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 // net::URLFetcherDelegate interface. | 41 // net::URLFetcherDelegate interface. |
| 42 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; | 42 virtual void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 typedef std::multimap<std::string, RequestCallback> CallbackMultiMap; | 45 typedef std::multimap<std::string, RequestCallback> CallbackMultiMap; |
| 46 | 46 |
| 47 GURL RequestUrl() const; | 47 GURL RequestUrl() const; |
| 48 | 48 |
| 49 void SaveRequestContext( | 49 void SaveRequestContext( |
| 50 const std::string& id, | 50 const std::string& id, |
| 51 scoped_refptr<net::URLRequestContextGetter> request_context_getter); | 51 scoped_refptr<net::URLRequestContextGetter> request_context_getter); |
| 52 | 52 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 67 | 67 |
| 68 base::WeakPtrFactory<BlacklistStateFetcher> weak_ptr_factory_; | 68 base::WeakPtrFactory<BlacklistStateFetcher> weak_ptr_factory_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(BlacklistStateFetcher); | 70 DISALLOW_COPY_AND_ASSIGN(BlacklistStateFetcher); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace extensions | 73 } // namespace extensions |
| 74 | 74 |
| 75 #endif // CHROME_BROWSER_EXTENSIONS_BLACKLIST_STATE_FETCHER_H_ | 75 #endif // CHROME_BROWSER_EXTENSIONS_BLACKLIST_STATE_FETCHER_H_ |
| 76 | 76 |
| OLD | NEW |