| Index: chrome/browser/local_discovery/cloud_print_account_manager.h
|
| diff --git a/chrome/browser/local_discovery/cloud_print_account_manager.h b/chrome/browser/local_discovery/cloud_print_account_manager.h
|
| index 7667b39d5b93c46b503355016779b91cccd88fd6..39c54487b65ac422c81c109ecb313be42a3e0a6a 100644
|
| --- a/chrome/browser/local_discovery/cloud_print_account_manager.h
|
| +++ b/chrome/browser/local_discovery/cloud_print_account_manager.h
|
| @@ -10,12 +10,11 @@
|
|
|
| #include "base/callback.h"
|
| #include "base/memory/scoped_ptr.h"
|
| -#include "net/url_request/url_fetcher.h"
|
| -#include "net/url_request/url_fetcher_delegate.h"
|
| +#include "chrome/browser/local_discovery/cloud_print_base_api_flow.h"
|
|
|
| namespace local_discovery {
|
|
|
| -class CloudPrintAccountManager : public net::URLFetcherDelegate {
|
| +class CloudPrintAccountManager : public CloudPrintBaseApiFlow::Delegate {
|
| public:
|
| typedef base::Callback<void(
|
| const std::vector<std::string>& /*accounts*/,
|
| @@ -29,17 +28,20 @@ class CloudPrintAccountManager : public net::URLFetcherDelegate {
|
|
|
| void Start();
|
|
|
| - // URLFetcher implementation:
|
| - virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
|
| + // BaseCloudPrintApiFlow::Delegate implementation.
|
| + virtual void OnCloudPrintAPIFlowError(
|
| + CloudPrintBaseApiFlow* flow,
|
| + CloudPrintBaseApiFlow::Status status) OVERRIDE;
|
| +
|
| + virtual void OnCloudPrintAPIFlowComplete(
|
| + CloudPrintBaseApiFlow* flow,
|
| + const base::DictionaryValue* value) OVERRIDE;
|
|
|
| private:
|
| void ReportEmptyUserList();
|
|
|
| - scoped_refptr<net::URLRequestContextGetter> request_context_;
|
| - std::string cloud_print_url_;
|
| - int token_user_index_;
|
| + CloudPrintBaseApiFlow flow_;
|
| AccountsCallback callback_;
|
| - scoped_ptr<net::URLFetcher> url_fetcher_;
|
| };
|
|
|
| } // namespace local_discovery
|
|
|