Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: chrome/browser/chromeos/policy/cloud_external_data_manager_base.h

Issue 58313002: Removed the PolicyDefinitionList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-10-use-registry
Patch Set: rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CLOUD_EXTERNAL_DATA_MANAGER_BASE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/threading/non_thread_safe.h" 12 #include "base/threading/non_thread_safe.h"
13 #include "chrome/browser/policy/cloud/cloud_external_data_manager.h" 13 #include "chrome/browser/policy/cloud/cloud_external_data_manager.h"
14 #include "components/policy/core/common/policy_details.h"
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 class CloudExternalDataStore; 22 class CloudExternalDataStore;
22 class ExternalPolicyDataFetcherBackend; 23 class ExternalPolicyDataFetcherBackend;
23 struct PolicyDefinitionList;
24 24
25 // Downloads, verifies, caches and retrieves external data referenced by 25 // Downloads, verifies, caches and retrieves external data referenced by
26 // policies. 26 // policies.
27 // This is a common base class used by specializations for regular users and 27 // This is a common base class used by specializations for regular users and
28 // device-local accounts. 28 // device-local accounts.
29 class CloudExternalDataManagerBase : public CloudExternalDataManager, 29 class CloudExternalDataManagerBase : public CloudExternalDataManager,
30 public base::NonThreadSafe { 30 public base::NonThreadSafe {
31 public: 31 public:
32 // The |policy_definitions| are used to determine the maximum size that the 32 // |get_policy_details| is used to determine the maximum size that the
33 // data referenced by each policy can have. Download scheduling, verification, 33 // data referenced by each policy can have. Download scheduling, verification,
34 // caching and retrieval tasks are done via the |backend_task_runner|, which 34 // caching and retrieval tasks are done via the |backend_task_runner|, which
35 // must support file I/O. Network I/O is done via the |io_task_runner|. 35 // must support file I/O. Network I/O is done via the |io_task_runner|.
36 CloudExternalDataManagerBase( 36 CloudExternalDataManagerBase(
37 const PolicyDefinitionList* policy_definitions, 37 const GetChromePolicyDetailsCallback& get_policy_details,
38 scoped_refptr<base::SequencedTaskRunner> backend_task_runner, 38 scoped_refptr<base::SequencedTaskRunner> backend_task_runner,
39 scoped_refptr<base::SequencedTaskRunner> io_task_runner); 39 scoped_refptr<base::SequencedTaskRunner> io_task_runner);
40 virtual ~CloudExternalDataManagerBase(); 40 virtual ~CloudExternalDataManagerBase();
41 41
42 // Allows downloaded external data to be cached in |external_data_store|. 42 // Allows downloaded external data to be cached in |external_data_store|.
43 // Ownership of the store is taken. The store can be destroyed by calling 43 // Ownership of the store is taken. The store can be destroyed by calling
44 // SetExternalDataStore(scoped_ptr<CloudExternalDataStore>()). Accesses to the 44 // SetExternalDataStore(scoped_ptr<CloudExternalDataStore>()). Accesses to the
45 // store are made via |backend_task_runner_| only. 45 // store are made via |backend_task_runner_| only.
46 void SetExternalDataStore( 46 void SetExternalDataStore(
47 scoped_ptr<CloudExternalDataStore> external_data_store); 47 scoped_ptr<CloudExternalDataStore> external_data_store);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // |backend_task_runner_|. 88 // |backend_task_runner_|.
89 class Backend; 89 class Backend;
90 scoped_ptr<Backend> backend_; 90 scoped_ptr<Backend> backend_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(CloudExternalDataManagerBase); 92 DISALLOW_COPY_AND_ASSIGN(CloudExternalDataManagerBase);
93 }; 93 };
94 94
95 } // namespace policy 95 } // namespace policy
96 96
97 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_H_ 97 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/cloud_external_data_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698