OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_NTP_SNIPPETS_REMOTE_NTP_SNIPPETS_FETCHER_H_ | 5 #ifndef COMPONENTS_NTP_SNIPPETS_REMOTE_NTP_SNIPPETS_FETCHER_H_ |
6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_NTP_SNIPPETS_FETCHER_H_ | 6 #define COMPONENTS_NTP_SNIPPETS_REMOTE_NTP_SNIPPETS_FETCHER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "components/ntp_snippets/remote/request_throttler.h" | 22 #include "components/ntp_snippets/remote/request_throttler.h" |
23 #include "components/translate/core/browser/language_model.h" | 23 #include "components/translate/core/browser/language_model.h" |
24 #include "google_apis/gaia/oauth2_token_service.h" | 24 #include "google_apis/gaia/oauth2_token_service.h" |
25 #include "net/url_request/url_fetcher_delegate.h" | 25 #include "net/url_request/url_fetcher_delegate.h" |
26 #include "net/url_request/url_request_context_getter.h" | 26 #include "net/url_request/url_request_context_getter.h" |
27 | 27 |
28 class PrefService; | 28 class PrefService; |
29 class SigninManagerBase; | 29 class SigninManagerBase; |
30 | 30 |
31 namespace base { | 31 namespace base { |
32 class ListValue; | |
33 class Value; | 32 class Value; |
34 } // namespace base | 33 } // namespace base |
35 | 34 |
36 namespace ntp_snippets { | 35 namespace ntp_snippets { |
37 | 36 |
38 class UserClassifier; | 37 class UserClassifier; |
39 | 38 |
40 // TODO(tschumann): BuildArticleCategoryInfo() and BuildRemoteCategoryInfo() | 39 // TODO(tschumann): BuildArticleCategoryInfo() and BuildRemoteCategoryInfo() |
41 // don't really belong into this library. However, as the snippets fetcher is | 40 // don't really belong into this library. However, as the snippets fetcher is |
42 // providing this data for server-defined remote sections it's a good starting | 41 // providing this data for server-defined remote sections it's a good starting |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 std::string last_status_; | 299 std::string last_status_; |
301 std::string last_fetch_json_; | 300 std::string last_fetch_json_; |
302 | 301 |
303 base::WeakPtrFactory<NTPSnippetsFetcher> weak_ptr_factory_; | 302 base::WeakPtrFactory<NTPSnippetsFetcher> weak_ptr_factory_; |
304 | 303 |
305 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsFetcher); | 304 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsFetcher); |
306 }; | 305 }; |
307 } // namespace ntp_snippets | 306 } // namespace ntp_snippets |
308 | 307 |
309 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_NTP_SNIPPETS_FETCHER_H_ | 308 #endif // COMPONENTS_NTP_SNIPPETS_REMOTE_NTP_SNIPPETS_FETCHER_H_ |
OLD | NEW |