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_TOKEN_STORE_H_ | 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_TOKEN_STORE_H_ |
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_TOKEN_STORE_H_ | 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_TOKEN_STORE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
10 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
11 | 12 |
12 // This class serves as the single repository for cloud print auth tokens. This | 13 // This class serves as the single repository for cloud print auth tokens. This |
13 // is only used within the CloudPrintProxyCoreThread. | 14 // is only used within the CloudPrintProxyCoreThread. |
14 | 15 |
15 namespace cloud_print { | 16 namespace cloud_print { |
16 | 17 |
17 class CloudPrintTokenStore : public base::NonThreadSafe { | 18 class CloudPrintTokenStore : public base::NonThreadSafe { |
18 public: | 19 public: |
19 // Returns the CloudPrintTokenStore instance for this thread. Will be NULL | 20 // Returns the CloudPrintTokenStore instance for this thread. Will be NULL |
(...skipping 11 matching lines...) Expand all Loading... |
31 | 32 |
32 private: | 33 private: |
33 std::string token_; | 34 std::string token_; |
34 | 35 |
35 DISALLOW_COPY_AND_ASSIGN(CloudPrintTokenStore); | 36 DISALLOW_COPY_AND_ASSIGN(CloudPrintTokenStore); |
36 }; | 37 }; |
37 | 38 |
38 } // namespace cloud_print | 39 } // namespace cloud_print |
39 | 40 |
40 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_TOKEN_STORE_H_ | 41 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_TOKEN_STORE_H_ |
OLD | NEW |