PrivetURLFetcher 109 chrome/browser/local_discovery/privet_http_impl.cc void PrivetInfoOperationImpl::OnError(PrivetURLFetcher* fetcher, PrivetURLFetcher 110 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher::ErrorType error) { PrivetURLFetcher 114 chrome/browser/local_discovery/privet_http_impl.cc void PrivetInfoOperationImpl::OnParsedJson(PrivetURLFetcher* fetcher, PrivetURLFetcher 167 chrome/browser/local_discovery/privet_http_impl.cc void PrivetRegisterOperationImpl::OnError(PrivetURLFetcher* fetcher, PrivetURLFetcher 168 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher::ErrorType error) { PrivetURLFetcher 173 chrome/browser/local_discovery/privet_http_impl.cc if (error == PrivetURLFetcher::RESPONSE_CODE_ERROR) { PrivetURLFetcher 176 chrome/browser/local_discovery/privet_http_impl.cc } else if (error == PrivetURLFetcher::JSON_PARSE_ERROR) { PrivetURLFetcher 178 chrome/browser/local_discovery/privet_http_impl.cc } else if (error == PrivetURLFetcher::TOKEN_ERROR) { PrivetURLFetcher 180 chrome/browser/local_discovery/privet_http_impl.cc } else if (error == PrivetURLFetcher::RETRY_ERROR) { PrivetURLFetcher 192 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 215 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 216 chrome/browser/local_discovery/privet_http_impl.cc const PrivetURLFetcher::TokenCallback& callback) { PrivetURLFetcher 328 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 329 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher::ErrorType error) { PrivetURLFetcher 333 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 368 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 369 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher::ErrorType error) { PrivetURLFetcher 374 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 381 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 382 chrome/browser/local_discovery/privet_http_impl.cc const PrivetURLFetcher::TokenCallback& callback) { PrivetURLFetcher 430 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 431 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher::ErrorType error) { PrivetURLFetcher 436 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 443 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 444 chrome/browser/local_discovery/privet_http_impl.cc const PrivetURLFetcher::TokenCallback& callback) { PrivetURLFetcher 448 chrome/browser/local_discovery/privet_http_impl.cc bool PrivetDataReadOperationImpl::OnRawData(PrivetURLFetcher* fetcher, PrivetURLFetcher 763 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 764 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher::ErrorType error) { PrivetURLFetcher 769 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 777 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 778 chrome/browser/local_discovery/privet_http_impl.cc const PrivetURLFetcher::TokenCallback& callback) { PrivetURLFetcher 887 chrome/browser/local_discovery/privet_http_impl.cc scoped_ptr<PrivetURLFetcher> PrivetHTTPClientImpl::CreateURLFetcher( PrivetURLFetcher 889 chrome/browser/local_discovery/privet_http_impl.cc PrivetURLFetcher::Delegate* delegate) const { PrivetURLFetcher 894 chrome/browser/local_discovery/privet_http_impl.cc return scoped_ptr<PrivetURLFetcher>( PrivetURLFetcher 895 chrome/browser/local_discovery/privet_http_impl.cc new PrivetURLFetcher(url.ReplaceComponents(replacements), PrivetURLFetcher 902 chrome/browser/local_discovery/privet_http_impl.cc const PrivetURLFetcher::TokenCallback& callback) { PrivetURLFetcher 27 chrome/browser/local_discovery/privet_http_impl.h public PrivetURLFetcher::Delegate { PrivetURLFetcher 37 chrome/browser/local_discovery/privet_http_impl.h virtual void OnError(PrivetURLFetcher* fetcher, PrivetURLFetcher 38 chrome/browser/local_discovery/privet_http_impl.h PrivetURLFetcher::ErrorType error) OVERRIDE; PrivetURLFetcher 39 chrome/browser/local_discovery/privet_http_impl.h virtual void OnParsedJson(PrivetURLFetcher* fetcher, PrivetURLFetcher 46 chrome/browser/local_discovery/privet_http_impl.h scoped_ptr<PrivetURLFetcher> url_fetcher_; PrivetURLFetcher 51 chrome/browser/local_discovery/privet_http_impl.h public PrivetURLFetcher::Delegate, PrivetURLFetcher 63 chrome/browser/local_discovery/privet_http_impl.h virtual void OnError(PrivetURLFetcher* fetcher, PrivetURLFetcher 64 chrome/browser/local_discovery/privet_http_impl.h PrivetURLFetcher::ErrorType error) OVERRIDE; PrivetURLFetcher 66 chrome/browser/local_discovery/privet_http_impl.h virtual void OnParsedJson(PrivetURLFetcher* fetcher, PrivetURLFetcher 71 chrome/browser/local_discovery/privet_http_impl.h PrivetURLFetcher* fetcher, PrivetURLFetcher 72 chrome/browser/local_discovery/privet_http_impl.h const PrivetURLFetcher::TokenCallback& callback) OVERRIDE; PrivetURLFetcher 76 chrome/browser/local_discovery/privet_http_impl.h class Cancelation : public PrivetURLFetcher::Delegate { PrivetURLFetcher 82 chrome/browser/local_discovery/privet_http_impl.h virtual void OnError(PrivetURLFetcher* fetcher, PrivetURLFetcher 83 chrome/browser/local_discovery/privet_http_impl.h PrivetURLFetcher::ErrorType error) OVERRIDE; PrivetURLFetcher 85 chrome/browser/local_discovery/privet_http_impl.h virtual void OnParsedJson(PrivetURLFetcher* fetcher, PrivetURLFetcher 92 chrome/browser/local_discovery/privet_http_impl.h scoped_ptr<PrivetURLFetcher> url_fetcher_; PrivetURLFetcher 110 chrome/browser/local_discovery/privet_http_impl.h scoped_ptr<PrivetURLFetcher> url_fetcher_; PrivetURLFetcher 123 chrome/browser/local_discovery/privet_http_impl.h public PrivetURLFetcher::Delegate { PrivetURLFetcher 135 chrome/browser/local_discovery/privet_http_impl.h virtual void OnError(PrivetURLFetcher* fetcher, PrivetURLFetcher 136 chrome/browser/local_discovery/privet_http_impl.h PrivetURLFetcher::ErrorType error) OVERRIDE; PrivetURLFetcher 137 chrome/browser/local_discovery/privet_http_impl.h virtual void OnParsedJson(PrivetURLFetcher* fetcher, PrivetURLFetcher 141 chrome/browser/local_discovery/privet_http_impl.h PrivetURLFetcher* fetcher, PrivetURLFetcher 142 chrome/browser/local_discovery/privet_http_impl.h const PrivetURLFetcher::TokenCallback& callback) OVERRIDE; PrivetURLFetcher 150 chrome/browser/local_discovery/privet_http_impl.h scoped_ptr<PrivetURLFetcher> url_fetcher_; PrivetURLFetcher 154 chrome/browser/local_discovery/privet_http_impl.h public PrivetURLFetcher::Delegate { PrivetURLFetcher 171 chrome/browser/local_discovery/privet_http_impl.h virtual void OnError(PrivetURLFetcher* fetcher, PrivetURLFetcher 172 chrome/browser/local_discovery/privet_http_impl.h PrivetURLFetcher::ErrorType error) OVERRIDE; PrivetURLFetcher 173 chrome/browser/local_discovery/privet_http_impl.h virtual void OnParsedJson(PrivetURLFetcher* fetcher, PrivetURLFetcher 177 chrome/browser/local_discovery/privet_http_impl.h PrivetURLFetcher* fetcher, PrivetURLFetcher 178 chrome/browser/local_discovery/privet_http_impl.h const PrivetURLFetcher::TokenCallback& callback) OVERRIDE; PrivetURLFetcher 179 chrome/browser/local_discovery/privet_http_impl.h virtual bool OnRawData(PrivetURLFetcher* fetcher, PrivetURLFetcher 195 chrome/browser/local_discovery/privet_http_impl.h scoped_ptr<PrivetURLFetcher> url_fetcher_; PrivetURLFetcher 200 chrome/browser/local_discovery/privet_http_impl.h public PrivetURLFetcher::Delegate { PrivetURLFetcher 228 chrome/browser/local_discovery/privet_http_impl.h virtual void OnError(PrivetURLFetcher* fetcher, PrivetURLFetcher 229 chrome/browser/local_discovery/privet_http_impl.h PrivetURLFetcher::ErrorType error) OVERRIDE; PrivetURLFetcher 230 chrome/browser/local_discovery/privet_http_impl.h virtual void OnParsedJson(PrivetURLFetcher* fetcher, PrivetURLFetcher 234 chrome/browser/local_discovery/privet_http_impl.h PrivetURLFetcher* fetcher, PrivetURLFetcher 235 chrome/browser/local_discovery/privet_http_impl.h const PrivetURLFetcher::TokenCallback& callback) OVERRIDE; PrivetURLFetcher 281 chrome/browser/local_discovery/privet_http_impl.h scoped_ptr<PrivetURLFetcher> url_fetcher_; PrivetURLFetcher 319 chrome/browser/local_discovery/privet_http_impl.h scoped_ptr<PrivetURLFetcher> CreateURLFetcher( PrivetURLFetcher 322 chrome/browser/local_discovery/privet_http_impl.h PrivetURLFetcher::Delegate* delegate) const; PrivetURLFetcher 325 chrome/browser/local_discovery/privet_http_impl.h const PrivetURLFetcher::TokenCallback& token_callback); PrivetURLFetcher 328 chrome/browser/local_discovery/privet_http_impl.h typedef std::vector<PrivetURLFetcher::TokenCallback> TokenCallbackVector; PrivetURLFetcher 252 chrome/browser/local_discovery/privet_http_unittest.cc PrivetURLFetcher::ResetTokenMapForTests(); PrivetURLFetcher 815 chrome/browser/local_discovery/privet_http_unittest.cc PrivetURLFetcher::ResetTokenMapForTests(); PrivetURLFetcher 52 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::Delegate::OnNeedPrivetToken( PrivetURLFetcher 53 chrome/browser/local_discovery/privet_url_fetcher.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 58 chrome/browser/local_discovery/privet_url_fetcher.cc bool PrivetURLFetcher::Delegate::OnRawData(PrivetURLFetcher* fetcher, PrivetURLFetcher 65 chrome/browser/local_discovery/privet_url_fetcher.cc PrivetURLFetcher::PrivetURLFetcher( PrivetURLFetcher 69 chrome/browser/local_discovery/privet_url_fetcher.cc PrivetURLFetcher::Delegate* delegate) PrivetURLFetcher 83 chrome/browser/local_discovery/privet_url_fetcher.cc PrivetURLFetcher::~PrivetURLFetcher() { PrivetURLFetcher 87 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::SetTokenForHost(const std::string& host, PrivetURLFetcher 93 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::ResetTokenMapForTests() { PrivetURLFetcher 97 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::DoNotRetryOnTransientError() { PrivetURLFetcher 102 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::SendEmptyPrivetToken() { PrivetURLFetcher 107 chrome/browser/local_discovery/privet_url_fetcher.cc std::string PrivetURLFetcher::GetPrivetAccessToken() { PrivetURLFetcher 117 chrome/browser/local_discovery/privet_url_fetcher.cc std::string PrivetURLFetcher::GetHostString() { PrivetURLFetcher 121 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::SaveResponseToFile() { PrivetURLFetcher 126 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::SetByteRange(int start, int end) { PrivetURLFetcher 133 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::Try() { PrivetURLFetcher 177 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::Start() { PrivetURLFetcher 192 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::SetUploadData(const std::string& upload_content_type, PrivetURLFetcher 199 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::SetUploadFilePath( PrivetURLFetcher 207 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::OnURLFetchComplete(const net::URLFetcher* source) { PrivetURLFetcher 227 chrome/browser/local_discovery/privet_url_fetcher.cc bool PrivetURLFetcher::OnURLFetchCompleteDoNotParseData( PrivetURLFetcher 261 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::OnURLFetchCompleteParseData( PrivetURLFetcher 315 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::ScheduleRetry(int timeout_seconds) { PrivetURLFetcher 327 chrome/browser/local_discovery/privet_url_fetcher.cc base::Bind(&PrivetURLFetcher::Try, weak_factory_.GetWeakPtr()), PrivetURLFetcher 331 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::RequestTokenRefresh() { PrivetURLFetcher 334 chrome/browser/local_discovery/privet_url_fetcher.cc base::Bind(&PrivetURLFetcher::RefreshToken, weak_factory_.GetWeakPtr())); PrivetURLFetcher 337 chrome/browser/local_discovery/privet_url_fetcher.cc void PrivetURLFetcher::RefreshToken(const std::string& token) { PrivetURLFetcher 346 chrome/browser/local_discovery/privet_url_fetcher.cc bool PrivetURLFetcher::PrivetErrorTransient(const std::string& error) { PrivetURLFetcher 29 chrome/browser/local_discovery/privet_url_fetcher.h class PrivetURLFetcher : public net::URLFetcherDelegate { PrivetURLFetcher 48 chrome/browser/local_discovery/privet_url_fetcher.h PrivetURLFetcher* fetcher, PrivetURLFetcher 50 chrome/browser/local_discovery/privet_url_fetcher.h virtual void OnError(PrivetURLFetcher* fetcher, ErrorType error) = 0; PrivetURLFetcher 51 chrome/browser/local_discovery/privet_url_fetcher.h virtual void OnParsedJson(PrivetURLFetcher* fetcher, PrivetURLFetcher 58 chrome/browser/local_discovery/privet_url_fetcher.h virtual bool OnRawData(PrivetURLFetcher* fetcher, PrivetURLFetcher 64 chrome/browser/local_discovery/privet_url_fetcher.h PrivetURLFetcher( PrivetURLFetcher 70 chrome/browser/local_discovery/privet_url_fetcher.h virtual ~PrivetURLFetcher(); PrivetURLFetcher 132 chrome/browser/local_discovery/privet_url_fetcher.h base::WeakPtrFactory<PrivetURLFetcher> weak_factory_; PrivetURLFetcher 133 chrome/browser/local_discovery/privet_url_fetcher.h DISALLOW_COPY_AND_ASSIGN(PrivetURLFetcher); PrivetURLFetcher 26 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc class MockPrivetURLFetcherDelegate : public PrivetURLFetcher::Delegate { PrivetURLFetcher 34 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc virtual void OnError(PrivetURLFetcher* fetcher, PrivetURLFetcher 35 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc PrivetURLFetcher::ErrorType error) OVERRIDE { PrivetURLFetcher 39 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc MOCK_METHOD1(OnErrorInternal, void(PrivetURLFetcher::ErrorType error)); PrivetURLFetcher 41 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc virtual void OnParsedJson(PrivetURLFetcher* fetcher, PrivetURLFetcher 51 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc PrivetURLFetcher* fetcher, PrivetURLFetcher 52 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc const PrivetURLFetcher::TokenCallback& callback) { PrivetURLFetcher 55 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc bool OnRawData(PrivetURLFetcher* fetcher, PrivetURLFetcher 91 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc privet_urlfetcher_.reset(new PrivetURLFetcher( PrivetURLFetcher 97 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc PrivetURLFetcher::SetTokenForHost(GURL(kSamplePrivetURL).GetOrigin().spec(), PrivetURLFetcher 121 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc scoped_ptr<PrivetURLFetcher> privet_urlfetcher_; PrivetURLFetcher 178 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc OnErrorInternal(PrivetURLFetcher::RESPONSE_CODE_ERROR)); PrivetURLFetcher 192 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc OnErrorInternal(PrivetURLFetcher::JSON_PARSE_ERROR)); PrivetURLFetcher 209 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc PrivetURLFetcher::SetTokenForHost(GURL(kSamplePrivetURL).GetOrigin().spec(), PrivetURLFetcher 226 chrome/browser/local_discovery/privet_url_fetcher_unittest.cc PrivetURLFetcher::SetTokenForHost(GURL(kSamplePrivetURL).GetOrigin().spec(),