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_BROWSER_CHROMEOS_POLICY_USER_POLICY_TOKEN_LOADER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_POLICY_TOKEN_LOADER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_POLICY_TOKEN_LOADER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_POLICY_TOKEN_LOADER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/single_thread_task_runner.h" | |
Mattias Nissler (ping if slow)
2015/05/04 13:25:17
should be in .cc
Pranay
2015/05/04 13:57:12
Done.
| |
14 | 15 |
15 namespace base { | 16 namespace base { |
16 class SequencedTaskRunner; | 17 class SequencedTaskRunner; |
17 } | 18 } |
18 | 19 |
19 namespace policy { | 20 namespace policy { |
20 | 21 |
21 // Handles disk access and threading details for loading and storing tokens. | 22 // Handles disk access and threading details for loading and storing tokens. |
22 // This is legacy-support code that reads the token from its prior location | 23 // This is legacy-support code that reads the token from its prior location |
23 // within the profile directory new code keeps the token in the policy blob | 24 // within the profile directory new code keeps the token in the policy blob |
(...skipping 30 matching lines...) Expand all Loading... | |
54 const base::FilePath cache_file_; | 55 const base::FilePath cache_file_; |
55 scoped_refptr<base::SequencedTaskRunner> origin_task_runner_; | 56 scoped_refptr<base::SequencedTaskRunner> origin_task_runner_; |
56 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; | 57 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; |
57 | 58 |
58 DISALLOW_COPY_AND_ASSIGN(UserPolicyTokenLoader); | 59 DISALLOW_COPY_AND_ASSIGN(UserPolicyTokenLoader); |
59 }; | 60 }; |
60 | 61 |
61 } // namespace policy | 62 } // namespace policy |
62 | 63 |
63 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_POLICY_TOKEN_LOADER_H_ | 64 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_POLICY_TOKEN_LOADER_H_ |
OLD | NEW |