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

Unified Diff: chrome/browser/local_discovery/privet_http_impl.h

Issue 166373006: Use persistent map of privet tokens for PrivetURLFetcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/local_discovery/privet_http_impl.h
diff --git a/chrome/browser/local_discovery/privet_http_impl.h b/chrome/browser/local_discovery/privet_http_impl.h
index 5c720e2f4b443ac2f5d2971f76f2215c19533d3b..23c9a58e732eae3f4fe7d2a0309f1471f4b827d3 100644
--- a/chrome/browser/local_discovery/privet_http_impl.h
+++ b/chrome/browser/local_discovery/privet_http_impl.h
@@ -243,8 +243,6 @@ class PrivetHTTPClientImpl : public PrivetHTTPClient {
net::URLRequestContextGetter* request_context);
virtual ~PrivetHTTPClientImpl();
- virtual const base::DictionaryValue* GetCachedInfo() const OVERRIDE;
-
virtual scoped_ptr<PrivetRegisterOperation> CreateRegisterOperation(
const std::string& user,
PrivetRegisterOperation::Delegate* delegate) OVERRIDE;
@@ -269,10 +267,6 @@ class PrivetHTTPClientImpl : public PrivetHTTPClient {
net::URLFetcher::RequestType request_type,
PrivetURLFetcher::Delegate* delegate) const;
- void CacheInfo(const base::DictionaryValue* cached_info);
-
- bool HasToken() const;
-
void RefreshPrivetToken(
const PrivetURLFetcher::TokenCallback& token_callback);
@@ -282,9 +276,8 @@ class PrivetHTTPClientImpl : public PrivetHTTPClient {
void OnPrivetInfoDone(const base::DictionaryValue* value);
std::string name_;
- PrivetURLFetcherFactory fetcher_factory_;
+ scoped_refptr<net::URLRequestContextGetter> request_context_;
net::HostPortPair host_port_;
- scoped_ptr<base::DictionaryValue> cached_info_;
scoped_ptr<PrivetJSONOperation> info_operation_;
TokenCallbackVector token_callbacks_;

Powered by Google App Engine
This is Rietveld 408576698