OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SERVICE_CLOUD_PRINT_CLOUD_PRINT_WIPEOUT_H_ | 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_WIPEOUT_H_ |
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_WIPEOUT_H_ | 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_WIPEOUT_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "chrome/service/cloud_print/cloud_print_url_fetcher.h" | 12 #include "chrome/service/cloud_print/cloud_print_url_fetcher.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 | 14 |
| 15 namespace cloud_print { |
| 16 |
15 // CloudPrintWipeout unregisters list of printers from the cloudprint service. | 17 // CloudPrintWipeout unregisters list of printers from the cloudprint service. |
16 class CloudPrintWipeout : public CloudPrintURLFetcherDelegate { | 18 class CloudPrintWipeout : public CloudPrintURLFetcherDelegate { |
17 public: | 19 public: |
18 class Client { | 20 class Client { |
19 public: | 21 public: |
20 virtual void OnUnregisterPrintersComplete() = 0; | 22 virtual void OnUnregisterPrintersComplete() = 0; |
21 protected: | 23 protected: |
22 virtual ~Client() {} | 24 virtual ~Client() {} |
23 }; | 25 }; |
24 | 26 |
(...skipping 23 matching lines...) Expand all Loading... |
48 // The CloudPrintURLFetcher instance for the current request. | 50 // The CloudPrintURLFetcher instance for the current request. |
49 scoped_refptr<CloudPrintURLFetcher> request_; | 51 scoped_refptr<CloudPrintURLFetcher> request_; |
50 // Auth token. | 52 // Auth token. |
51 std::string auth_token_; | 53 std::string auth_token_; |
52 // List of printer to unregister | 54 // List of printer to unregister |
53 std::list<std::string> printer_ids_; | 55 std::list<std::string> printer_ids_; |
54 | 56 |
55 DISALLOW_COPY_AND_ASSIGN(CloudPrintWipeout); | 57 DISALLOW_COPY_AND_ASSIGN(CloudPrintWipeout); |
56 }; | 58 }; |
57 | 59 |
| 60 } // namespace cloud_print |
| 61 |
58 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_WIPEOUT_H_ | 62 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_WIPEOUT_H_ |
59 | 63 |
OLD | NEW |