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_POLICY_CLOUD_USER_CLOUD_POLICY_STORE_BASE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_STORE_BASE_H_ |
6 #define CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_STORE_BASE_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_STORE_BASE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "chrome/browser/policy/cloud/cloud_policy_store.h" | 14 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
15 #include "chrome/browser/policy/cloud/cloud_policy_validator.h" | 15 #include "components/policy/core/common/cloud/cloud_policy_validator.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class SequencedTaskRunner; | 18 class SequencedTaskRunner; |
19 } | 19 } |
20 | 20 |
21 namespace policy { | 21 namespace policy { |
22 | 22 |
23 // Base class that implements common cross-platform UserCloudPolicyStore | 23 // Base class that implements common cross-platform UserCloudPolicyStore |
24 // functionality. | 24 // functionality. |
25 class UserCloudPolicyStoreBase : public CloudPolicyStore { | 25 class UserCloudPolicyStoreBase : public CloudPolicyStore { |
(...skipping 21 matching lines...) Expand all Loading... |
47 private: | 47 private: |
48 // Task runner for background file operations. | 48 // Task runner for background file operations. |
49 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; | 49 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyStoreBase); | 51 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyStoreBase); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace policy | 54 } // namespace policy |
55 | 55 |
56 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_STORE_BASE_H_ | 56 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_STORE_BASE_H_ |
OLD | NEW |