OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 // This class serves as the single repository for cloud print auth tokens. This | 10 // This class serves as the single repository for cloud print auth tokens. This |
12 // is only used within the CloudPrintProxyCoreThread. | 11 // is only used within the CloudPrintProxyCoreThread. |
13 | 12 |
14 #include "base/logging.h" | 13 #include "base/logging.h" |
15 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
16 | 15 |
17 class CloudPrintTokenStore : public base::NonThreadSafe { | 16 class CloudPrintTokenStore : public base::NonThreadSafe { |
(...skipping 11 matching lines...) Expand all Loading... |
29 return token_; | 28 return token_; |
30 } | 29 } |
31 | 30 |
32 private: | 31 private: |
33 std::string token_; | 32 std::string token_; |
34 | 33 |
35 DISALLOW_COPY_AND_ASSIGN(CloudPrintTokenStore); | 34 DISALLOW_COPY_AND_ASSIGN(CloudPrintTokenStore); |
36 }; | 35 }; |
37 | 36 |
38 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_TOKEN_STORE_H_ | 37 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_TOKEN_STORE_H_ |
OLD | NEW |