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

Side by Side Diff: chrome/browser/local_discovery/cloud_print_account_manager.h

Issue 163943005: Remove CloudPrintAccountManager. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/local_discovery/cloud_print_account_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_ACCOUNT_MANAGER_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_ACCOUNT_MANAGER_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/callback.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/local_discovery/cloud_print_base_api_flow.h"
14
15 namespace local_discovery {
16
17 class CloudPrintAccountManager : public CloudPrintBaseApiFlow::Delegate {
18 public:
19 typedef base::Callback<void(
20 const std::vector<std::string>& /*accounts*/,
21 const std::string& /*xsrf_token*/)> AccountsCallback;
22
23 CloudPrintAccountManager(net::URLRequestContextGetter* request_context,
24 const std::string& cloud_print_url,
25 int token_user_index,
26 const AccountsCallback& callback);
27 virtual ~CloudPrintAccountManager();
28
29 void Start();
30
31 // BaseCloudPrintApiFlow::Delegate implementation.
32 virtual void OnCloudPrintAPIFlowError(
33 CloudPrintBaseApiFlow* flow,
34 CloudPrintBaseApiFlow::Status status) OVERRIDE;
35
36 virtual void OnCloudPrintAPIFlowComplete(
37 CloudPrintBaseApiFlow* flow,
38 const base::DictionaryValue* value) OVERRIDE;
39
40 private:
41 void ReportEmptyUserList();
42
43 CloudPrintBaseApiFlow flow_;
44 AccountsCallback callback_;
45 };
46
47 } // namespace local_discovery
48
49 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_ACCOUNT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/local_discovery/cloud_print_account_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698