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

Side by Side Diff: chrome/browser/policy/cloud/component_cloud_policy_updater.cc

Issue 50613003: Move the PolicyDomain and PolicyNamespace types to the policy component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "chrome/browser/policy/cloud/component_cloud_policy_updater.h" 5 #include "chrome/browser/policy/cloud/component_cloud_policy_updater.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/sequenced_task_runner.h" 12 #include "base/sequenced_task_runner.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "chrome/browser/policy/cloud/component_cloud_policy_store.h" 14 #include "chrome/browser/policy/cloud/component_cloud_policy_store.h"
15 #include "chrome/browser/policy/cloud/external_policy_data_fetcher.h" 15 #include "chrome/browser/policy/cloud/external_policy_data_fetcher.h"
16 #include "chrome/browser/policy/policy_service.h"
17 #include "chrome/browser/policy/proto/cloud/chrome_extension_policy.pb.h" 16 #include "chrome/browser/policy/proto/cloud/chrome_extension_policy.pb.h"
18 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" 17 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h"
18 #include "components/policy/core/common/policy_namespace.h"
19 19
20 namespace em = enterprise_management; 20 namespace em = enterprise_management;
21 21
22 namespace policy { 22 namespace policy {
23 23
24 namespace { 24 namespace {
25 25
26 // The maximum size of the serialized policy protobuf. 26 // The maximum size of the serialized policy protobuf.
27 const size_t kPolicyProtoMaxSize = 16 * 1024; 27 const size_t kPolicyProtoMaxSize = 16 * 1024;
28 28
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 data.secure_hash(), 96 data.secure_hash(),
97 kPolicyDataMaxSize), 97 kPolicyDataMaxSize),
98 base::Bind(&ComponentCloudPolicyStore::Store, base::Unretained(store_), 98 base::Bind(&ComponentCloudPolicyStore::Store, base::Unretained(store_),
99 ns, 99 ns,
100 serialized_response, 100 serialized_response,
101 data.secure_hash())); 101 data.secure_hash()));
102 } 102 }
103 } 103 }
104 104
105 } // namespace policy 105 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/component_cloud_policy_store.h ('k') | chrome/browser/policy/configuration_policy_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698