Home
last modified time | relevance | path

Searched refs:time_to_live (Results 1 – 25 of 33) sorted by relevance

12

/external/chromium_org/chrome/browser/extensions/token_cache/
Dtoken_cache_service.cc25 base::TimeDelta time_to_live) { in StoreToken() argument
33 DCHECK(time_to_live >= zero_delta); in StoreToken()
35 if (zero_delta < time_to_live) { in StoreToken()
37 expiration_time += time_to_live; in StoreToken()
Dtoken_cache_service.h35 base::TimeDelta time_to_live);
/external/chromium_org/google_apis/gaia/
Doauth2_mint_token_flow.cc129 int time_to_live) { in ReportSuccess() argument
131 delegate_->OnMintTokenSuccess(access_token, time_to_live); in ReportSuccess()
203 int time_to_live; in ProcessApiCallSuccess() local
204 if (ParseMintTokenResponse(dict, &access_token, &time_to_live)) in ProcessApiCallSuccess()
205 ReportSuccess(access_token, time_to_live); in ProcessApiCallSuccess()
233 int* time_to_live) { in ParseMintTokenResponse() argument
236 CHECK(time_to_live); in ParseMintTokenResponse()
239 base::StringToInt(ttl_string, time_to_live) && in ParseMintTokenResponse()
Doauth2_mint_token_flow.h96 int time_to_live) {} in OnMintTokenSuccess() argument
132 void ReportSuccess(const std::string& access_token, int time_to_live);
140 int* time_to_live);
/external/chromium_org/components/search_provider_logos/
Dgoogle_logo_api.cc92 base::TimeDelta time_to_live; in GoogleParseLogoResponse() local
95 time_to_live = base::TimeDelta::FromMilliseconds( in GoogleParseLogoResponse()
99 time_to_live = base::TimeDelta::FromMilliseconds(kMaxTimeToLiveMS); in GoogleParseLogoResponse()
102 logo->metadata.expiration_time = response_time + time_to_live; in GoogleParseLogoResponse()
Dlogo_tracker_unittest.cc123 base::TimeDelta time_to_live) { in MakeServerResponse() argument
133 if (time_to_live.ToInternalValue() != 0) in MakeServerResponse()
135 static_cast<int>(time_to_live.InMilliseconds())); in MakeServerResponse()
142 std::string MakeServerResponse(const Logo& logo, base::TimeDelta time_to_live) { in MakeServerResponse() argument
148 time_to_live); in MakeServerResponse()
355 base::TimeDelta time_to_live; in ServerResponse() local
357 time_to_live = logo.metadata.expiration_time - test_clock_->Now(); in ServerResponse()
358 return MakeServerResponse(logo, time_to_live); in ServerResponse()
523 base::TimeDelta time_to_live = base::TimeDelta::FromDays(3); in TEST_F() local
524 logo.metadata.expiration_time = test_clock_->Now() + time_to_live; in TEST_F()
[all …]
/external/chromium_org/chrome/browser/prerender/
Dprerender_unittest.cc470 prerender_manager()->config().time_to_live + TimeDelta::FromSeconds(1)); in TEST_F()
492 const TimeDelta time_to_live = TimeDelta::FromSeconds(300); in TEST_F() local
495 ASSERT_LT(test_advance, time_to_live); in TEST_F()
498 prerender_manager()->mutable_config().time_to_live = time_to_live; in TEST_F()
523 const TimeDelta time_to_live = TimeDelta::FromSeconds(300); in TEST_F() local
532 ASSERT_LT(first_advance, time_to_live); in TEST_F()
533 ASSERT_LT(time_to_live - first_advance, abandon_time_to_live); in TEST_F()
534 ASSERT_LT(time_to_live, first_advance + second_advance); in TEST_F()
536 prerender_manager()->mutable_config().time_to_live = time_to_live; in TEST_F()
567 const TimeDelta time_to_live = TimeDelta::FromSeconds(300); in TEST_F() local
[all …]
Dprerender_config.cc14 time_to_live(base::TimeDelta::FromMinutes(5)), in Config()
Dprerender_config.h39 base::TimeDelta time_to_live; member
/external/chromium_org/chrome/browser/extensions/api/identity/
Didentity_api.cc96 base::TimeDelta time_to_live) in IdentityTokenCacheValue() argument
100 time_to_live -= base::TimeDelta::FromMinutes(20); in IdentityTokenCacheValue()
103 if (time_to_live < zero_delta) in IdentityTokenCacheValue()
104 time_to_live = zero_delta; in IdentityTokenCacheValue()
106 expiration_time_ = base::Time::Now() + time_to_live; in IdentityTokenCacheValue()
545 const std::string& access_token, int time_to_live) { in OnMintTokenSuccess() argument
552 base::TimeDelta::FromSeconds(time_to_live)); in OnMintTokenSuccess()
676 int time_to_live; in OnGaiaFlowCompleted() local
677 if (!expiration.empty() && base::StringToInt(expiration, &time_to_live)) { in OnGaiaFlowCompleted()
679 access_token, base::TimeDelta::FromSeconds(time_to_live)); in OnGaiaFlowCompleted()
Didentity_api.h60 base::TimeDelta time_to_live);
249 int time_to_live) OVERRIDE;
/external/chromium_org/chrome/browser/ui/webui/
Didentity_internals_ui_browsertest.cc49 int time_to_live) { in AddTokenToCache() argument
52 base::TimeDelta::FromSeconds(time_to_live)); in AddTokenToCache()
Didentity_internals_ui_browsertest.h27 int time_to_live);
/external/chromium_org/net/udp/
Dudp_server_socket.cc84 int UDPServerSocket::SetMulticastTimeToLive(int time_to_live) { in SetMulticastTimeToLive() argument
85 return socket_.SetMulticastTimeToLive(time_to_live); in SetMulticastTimeToLive()
Ddatagram_server_socket.h96 virtual int SetMulticastTimeToLive(int time_to_live) = 0;
Dudp_server_socket.h45 virtual int SetMulticastTimeToLive(int time_to_live) OVERRIDE;
Dudp_socket_libevent.cc730 int UDPSocketLibevent::SetMulticastTimeToLive(int time_to_live) { in SetMulticastTimeToLive() argument
735 if (time_to_live < 0 || time_to_live > 255) in SetMulticastTimeToLive()
737 multicast_time_to_live_ = time_to_live; in SetMulticastTimeToLive()
Dudp_socket_win.cc894 int UDPSocketWin::SetMulticastTimeToLive(int time_to_live) { in SetMulticastTimeToLive() argument
899 if (time_to_live < 0 || time_to_live > 255) in SetMulticastTimeToLive()
901 multicast_time_to_live_ = time_to_live; in SetMulticastTimeToLive()
/external/chromium_org/chrome/browser/extensions/api/gcm/
Dgcm_api.cc168 if (params->message.time_to_live.get()) in DoWork()
169 outgoing_message.time_to_live = *params->message.time_to_live; in DoWork()
Dgcm_apitest.cc156 EXPECT_EQ(100, message.time_to_live); in IN_PROC_BROWSER_TEST_F()
174 EXPECT_EQ(gcm::GCMClient::OutgoingMessage::kMaximumTTL, message.time_to_live); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/components/gcm_driver/
Dgcm_client.cc21 : time_to_live(kMaximumTTL) { in OutgoingMessage()
Dgcm_client_impl.cc163 if (message.time_to_live == 0) in RecordOutgoingMessageToUMA()
165 else if (message.time_to_live <= 60 ) in RecordOutgoingMessageToUMA()
167 else if (message.time_to_live <= 60 * 60) in RecordOutgoingMessageToUMA()
169 else if (message.time_to_live <= 24 * 60 * 60) in RecordOutgoingMessageToUMA()
735 stanza.set_ttl(message.time_to_live); in Send()
Dgcm_account_mapper.cc253 outgoing_message.time_to_live = kGCMRemoveMappingMessageTTL; in CreateAndSendMessage()
257 outgoing_message.time_to_live = kGCMAddMappingMessageTTL; in CreateAndSendMessage()
/external/chromium_org/chrome/browser/signin/
Deasy_unlock_toggle_flow.h43 int time_to_live) OVERRIDE;
/external/chromium_org/chrome/browser/extensions/activity_log/
Dactivity_log_browsertest.cc88 prerender_manager->mutable_config().time_to_live = in IN_PROC_BROWSER_TEST_F()

12