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

Side by Side Diff: components/ntp_snippets/ntp_snippets_service.h

Issue 2357163004: [NTP Snippets] Remove scheduled re-scheduling (Closed)
Patch Set: Review: remove requiresCharging Created 4 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_NTP_SNIPPETS_SERVICE_H_ 5 #ifndef COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_
6 #define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ 6 #define COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 // Fetches snippets from the server and adds them to the current ones. 94 // Fetches snippets from the server and adds them to the current ones.
95 // Requests can be marked more important by setting |interactive_request| to 95 // Requests can be marked more important by setting |interactive_request| to
96 // true (such request might circumvent the daily quota for requests, etc.) 96 // true (such request might circumvent the daily quota for requests, etc.)
97 // Useful for requests triggered by the user. 97 // Useful for requests triggered by the user.
98 void FetchSnippets(bool interactive_request); 98 void FetchSnippets(bool interactive_request);
99 99
100 // Fetches snippets from the server for specified hosts (overriding 100 // Fetches snippets from the server for specified hosts (overriding
101 // suggestions from the suggestion service) and adds them to the current ones. 101 // suggestions from the suggestion service) and adds them to the current ones.
102 // Only called from chrome://snippets-internals, DO NOT USE otherwise! 102 // Only called from chrome://snippets-internals, DO NOT USE otherwise!
103 // Ignored while |loaded()| is false. 103 // Ignored while |ready()| is false.
Bernhard Bauer 2016/09/26 14:04:55 Super-nit: The pipe symbols are only used for vari
Marc Treib 2016/09/27 08:23:53 Done.
104 void FetchSnippetsFromHosts(const std::set<std::string>& hosts, 104 void FetchSnippetsFromHosts(const std::set<std::string>& hosts,
105 bool interactive_request); 105 bool interactive_request);
106 106
107 const NTPSnippetsFetcher* snippets_fetcher() const { 107 const NTPSnippetsFetcher* snippets_fetcher() const {
108 return snippets_fetcher_.get(); 108 return snippets_fetcher_.get();
109 } 109 }
110 110
111 // (Re)schedules the periodic fetching of snippets. 111 // (Re)schedules the periodic fetching of snippets.
112 void RescheduleFetching(); 112 void RescheduleFetching();
113 113
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 // Request throttler for limiting requests to thumbnail images. 337 // Request throttler for limiting requests to thumbnail images.
338 RequestThrottler thumbnail_requests_throttler_; 338 RequestThrottler thumbnail_requests_throttler_;
339 339
340 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsService); 340 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsService);
341 }; 341 };
342 342
343 } // namespace ntp_snippets 343 } // namespace ntp_snippets
344 344
345 #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_ 345 #endif // COMPONENTS_NTP_SNIPPETS_NTP_SNIPPETS_SERVICE_H_
OLDNEW
« no previous file with comments | « components/ntp_snippets/ntp_snippets_scheduler.h ('k') | components/ntp_snippets/ntp_snippets_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698