Index: components/suggestions/suggestions_service.h |
diff --git a/components/suggestions/suggestions_service.h b/components/suggestions/suggestions_service.h |
index ee1ed92ca6afa4f288d455684c805d8aef3cb87b..c7d41d9f2ce3b3537772db40d091373936ec7289 100644 |
--- a/components/suggestions/suggestions_service.h |
+++ b/components/suggestions/suggestions_service.h |
@@ -44,6 +44,7 @@ extern const char kSuggestionsFieldTrialBlacklistUrlParam[]; |
extern const char kSuggestionsFieldTrialStateParam[]; |
extern const char kSuggestionsFieldTrialControlParam[]; |
extern const char kSuggestionsFieldTrialStateEnabled[]; |
+extern const int64 kDefaultExpiryUsec; |
// An interface to fetch server suggestions asynchronously. |
class SuggestionsService : public KeyedService, public net::URLFetcherDelegate { |
@@ -92,6 +93,9 @@ class SuggestionsService : public KeyedService, public net::URLFetcherDelegate { |
// Register SuggestionsService related prefs in the Profile prefs. |
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
+ // Sets default timestamp for suggestions which do not have expiry timestamp. |
+ void SetDefaultExpiryTimestamp(SuggestionsProfile* suggestions, |
+ int64 timestamp_usec); |
Mathieu
2014/08/06 15:23:53
indent 1 less
gayane -on leave until 09-2017
2014/08/06 21:12:20
Done.
|
private: |
FRIEND_TEST_ALL_PREFIXES(SuggestionsServiceTest, BlacklistURLFails); |
FRIEND_TEST_ALL_PREFIXES(SuggestionsServiceTest, FetchSuggestionsData); |