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

Side by Side Diff: chrome/browser/policy/device_management_backend.h

Issue 7810025: Pass user_affiliation request parameter on user cloud policy requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build breakage. Created 9 years, 3 months 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 | Annotate | Revision Log
OLDNEW
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_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_ 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_
6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_ 6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/threading/non_thread_safe.h" 12 #include "base/threading/non_thread_safe.h"
13 #include "chrome/browser/policy/cloud_policy_data_store.h"
13 #include "chrome/browser/policy/proto/device_management_backend.pb.h" 14 #include "chrome/browser/policy/proto/device_management_backend.pb.h"
14 15
15 namespace policy { 16 namespace policy {
16 17
17 namespace em = enterprise_management; 18 namespace em = enterprise_management;
18 19
19 // Interface for clients that need to converse with the device management 20 // Interface for clients that need to converse with the device management
20 // server, which provides services to register Chrome installations and CrOS 21 // server, which provides services to register Chrome installations and CrOS
21 // devices for the purpose of fetching centrally-administered policy from the 22 // devices for the purpose of fetching centrally-administered policy from the
22 // cloud. 23 // cloud.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 100
100 virtual void ProcessUnregisterRequest( 101 virtual void ProcessUnregisterRequest(
101 const std::string& device_management_token, 102 const std::string& device_management_token,
102 const std::string& device_id, 103 const std::string& device_id,
103 const em::DeviceUnregisterRequest& request, 104 const em::DeviceUnregisterRequest& request,
104 DeviceUnregisterResponseDelegate* delegate) = 0; 105 DeviceUnregisterResponseDelegate* delegate) = 0;
105 106
106 virtual void ProcessPolicyRequest( 107 virtual void ProcessPolicyRequest(
107 const std::string& device_management_token, 108 const std::string& device_management_token,
108 const std::string& device_id, 109 const std::string& device_id,
110 CloudPolicyDataStore::UserAffiliation user_affiliation,
109 const em::DevicePolicyRequest& request, 111 const em::DevicePolicyRequest& request,
110 DevicePolicyResponseDelegate* delegate) = 0; 112 DevicePolicyResponseDelegate* delegate) = 0;
111 113
112 protected: 114 protected:
113 DeviceManagementBackend() {} 115 DeviceManagementBackend() {}
114 116
115 private: 117 private:
116 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackend); 118 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackend);
117 }; 119 };
118 120
119 } // namespace policy 121 } // namespace policy
120 122
121 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_ 123 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud_policy_data_store.cc ('k') | chrome/browser/policy/device_management_backend_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698