| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_FETCHER_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_FETCHER_H_ |
| 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_FETCHER_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_FETCHER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // Unknown kinds of facet URIs and new protocol buffer fields will be ignored. | 82 // Unknown kinds of facet URIs and new protocol buffer fields will be ignored. |
| 83 bool ParseResponse(AffiliationFetcherDelegate::Result* result) const; | 83 bool ParseResponse(AffiliationFetcherDelegate::Result* result) const; |
| 84 | 84 |
| 85 // net::URLFetcherDelegate: | 85 // net::URLFetcherDelegate: |
| 86 void OnURLFetchComplete(const net::URLFetcher* source) override; | 86 void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 87 | 87 |
| 88 const scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 88 const scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
| 89 const std::vector<FacetURI> requested_facet_uris_; | 89 const std::vector<FacetURI> requested_facet_uris_; |
| 90 AffiliationFetcherDelegate* const delegate_; | 90 AffiliationFetcherDelegate* const delegate_; |
| 91 | 91 |
| 92 scoped_ptr<net::URLFetcher> fetcher_; | 92 std::unique_ptr<net::URLFetcher> fetcher_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(AffiliationFetcher); | 94 DISALLOW_COPY_AND_ASSIGN(AffiliationFetcher); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace password_manager | 97 } // namespace password_manager |
| 98 | 98 |
| 99 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_FETCHER_H_ | 99 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_FETCHER_H_ |
| OLD | NEW |