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

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
« no previous file with comments | « chrome/browser/local_discovery/privet_http.h ('k') | chrome/browser/local_discovery/privet_http_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 558b971f3137dd8f0e73f0263f49c1c98c7c23cb..8d0ae3fb975bcccf16f4f92f45242cc8ca25be00 100644
--- a/chrome/browser/local_discovery/privet_http_impl.h
+++ b/chrome/browser/local_discovery/privet_http_impl.h
@@ -288,8 +288,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;
@@ -318,10 +316,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);
@@ -331,9 +325,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_;
« no previous file with comments | « chrome/browser/local_discovery/privet_http.h ('k') | chrome/browser/local_discovery/privet_http_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698