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

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

Issue 23382008: Making OAuth2TokenService multi-login aware, updating callers, minor fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to include the update to ProfileSyncService: r224220 Created 7 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_ 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_ 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 21 matching lines...) Expand all
32 std::string description; 32 std::string description;
33 // TODO(noamsml): std::string user; 33 // TODO(noamsml): std::string user;
34 }; 34 };
35 35
36 typedef std::vector<PrinterDetails> PrinterList; 36 typedef std::vector<PrinterDetails> PrinterList;
37 typedef PrinterList::const_iterator iterator; 37 typedef PrinterList::const_iterator iterator;
38 38
39 CloudPrintPrinterList(net::URLRequestContextGetter* request_context, 39 CloudPrintPrinterList(net::URLRequestContextGetter* request_context,
40 const std::string& cloud_print_url, 40 const std::string& cloud_print_url,
41 OAuth2TokenService* token_service, 41 OAuth2TokenService* token_service,
42 const std::string& account_id,
42 Delegate* delegate); 43 Delegate* delegate);
43 virtual ~CloudPrintPrinterList(); 44 virtual ~CloudPrintPrinterList();
44 45
45 void Start(); 46 void Start();
46 47
47 virtual void OnCloudPrintAPIFlowError( 48 virtual void OnCloudPrintAPIFlowError(
48 CloudPrintBaseApiFlow* flow, 49 CloudPrintBaseApiFlow* flow,
49 CloudPrintBaseApiFlow::Status status) OVERRIDE; 50 CloudPrintBaseApiFlow::Status status) OVERRIDE;
50 51
51 virtual void OnCloudPrintAPIFlowComplete( 52 virtual void OnCloudPrintAPIFlowComplete(
(...skipping 20 matching lines...) Expand all
72 GURL url_; 73 GURL url_;
73 PrinterIDMap printer_id_map_; 74 PrinterIDMap printer_id_map_;
74 PrinterList printer_list_; 75 PrinterList printer_list_;
75 Delegate* delegate_; 76 Delegate* delegate_;
76 CloudPrintBaseApiFlow api_flow_; 77 CloudPrintBaseApiFlow api_flow_;
77 }; 78 };
78 79
79 } // namespace local_discovery 80 } // namespace local_discovery
80 81
81 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_ 82 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698