Home | History | Annotate | Download | only in shill

Lines Matching refs:Result

62     const Callback<void(Result)>& callback)
127 HTTPRequest::Result result =
129 if (result != HTTPRequest::kResultInProgress) {
130 CompleteTrial(ConnectivityTrial::GetPortalResultForRequestResult(result));
164 CompleteTrial(Result(kPhaseContent, kStatusSuccess));
168 CompleteTrial(Result(kPhaseContent, kStatusFailure));
173 HTTPRequest::Result result, const ByteString& /*response_data*/) {
174 CompleteTrial(GetPortalResultForRequestResult(result));
177 void ConnectivityTrial::CompleteTrial(Result result) {
180 PhaseToString(result.phase).c_str(),
181 StatusToString(result.status).c_str());
183 trial_callback_.Run(result);
203 CompleteTrial(ConnectivityTrial::Result(ConnectivityTrial::kPhaseContent,
206 CompleteTrial(ConnectivityTrial::Result(ConnectivityTrial::kPhaseUnknown,
241 ConnectivityTrial::Result ConnectivityTrial::GetPortalResultForRequestResult(
242 HTTPRequest::Result result) {
243 switch (result) {
246 return Result(kPhaseContent, kStatusFailure);
248 return Result(kPhaseDNS, kStatusFailure);
250 return Result(kPhaseDNS, kStatusTimeout);
252 return Result(kPhaseConnection, kStatusFailure);
254 return Result(kPhaseConnection, kStatusTimeout);
257 return Result(kPhaseHTTP, kStatusFailure);
260 return Result(kPhaseHTTP, kStatusTimeout);
263 return Result(kPhaseUnknown, kStatusFailure);