| 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 8de33129f2fd06a3530716d4fe8f62bddd6d7a42..6ea683bbd7ad6c0ace199eae070d8c921ea1829a 100644
|
| --- a/chrome/browser/local_discovery/privet_http_impl.h
|
| +++ b/chrome/browser/local_discovery/privet_http_impl.h
|
| @@ -44,6 +44,25 @@ class PrivetRegisterOperationImpl
|
| public PrivetInfoOperation::Delegate,
|
| public base::SupportsWeakPtr<PrivetRegisterOperationImpl> {
|
| public:
|
| + class Cancelation : public PrivetURLFetcher::Delegate {
|
| + public:
|
| + Cancelation(PrivetHTTPClientImpl* privet_client,
|
| + const std::string& user);
|
| + virtual ~Cancelation();
|
| +
|
| + virtual void OnError(PrivetURLFetcher* fetcher,
|
| + PrivetURLFetcher::ErrorType error) OVERRIDE;
|
| +
|
| + virtual void OnParsedJson(PrivetURLFetcher* fetcher,
|
| + const base::DictionaryValue* value,
|
| + bool has_error) OVERRIDE;
|
| +
|
| + private:
|
| + void Cleanup();
|
| +
|
| + scoped_ptr<PrivetURLFetcher> url_fetcher_;
|
| + };
|
| +
|
| PrivetRegisterOperationImpl(PrivetHTTPClientImpl* privet_client,
|
| const std::string& user,
|
| PrivetRegisterOperation::Delegate* delegate);
|
| @@ -80,6 +99,11 @@ class PrivetRegisterOperationImpl
|
|
|
| bool PrivetErrorTransient(const std::string& error);
|
|
|
| + static GURL GetURLForActionAndUser(
|
| + PrivetHTTPClientImpl* privet_client,
|
| + const std::string& action,
|
| + const std::string& user);
|
| +
|
| std::string user_;
|
| std::string current_action_;
|
| scoped_ptr<PrivetURLFetcher> url_fetcher_;
|
|
|