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

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

Issue 8702009: Add device status reports to policy requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Mattias' comments and added unit test. Created 9 years 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_IMPL_H_ 5 #ifndef CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_
6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_ 6 #define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void ProcessUnregisterRequest( 68 virtual void ProcessUnregisterRequest(
69 const std::string& device_management_token, 69 const std::string& device_management_token,
70 const std::string& device_id, 70 const std::string& device_id,
71 const em::DeviceUnregisterRequest& request, 71 const em::DeviceUnregisterRequest& request,
72 DeviceUnregisterResponseDelegate* response_delegate); 72 DeviceUnregisterResponseDelegate* response_delegate);
73 virtual void ProcessPolicyRequest( 73 virtual void ProcessPolicyRequest(
74 const std::string& device_management_token, 74 const std::string& device_management_token,
75 const std::string& device_id, 75 const std::string& device_id,
76 CloudPolicyDataStore::UserAffiliation affiliation, 76 CloudPolicyDataStore::UserAffiliation affiliation,
77 const em::DevicePolicyRequest& request, 77 const em::DevicePolicyRequest& request,
78 const em::DeviceStatusReportRequest& device_status,
Mattias Nissler (ping if slow) 2011/11/30 12:44:29 Maybe we want to pass this as a pointer, so we can
Patrick Dubroy 2011/12/06 14:30:36 Done.
78 DevicePolicyResponseDelegate* response_delegate); 79 DevicePolicyResponseDelegate* response_delegate);
79 80
80 // Converts a user affiliation to the appropriate query parameter value. 81 // Converts a user affiliation to the appropriate query parameter value.
81 static const char* UserAffiliationToString( 82 static const char* UserAffiliationToString(
82 CloudPolicyDataStore::UserAffiliation affiliation); 83 CloudPolicyDataStore::UserAffiliation affiliation);
83 84
84 // Keeps track of the jobs currently in flight. 85 // Keeps track of the jobs currently in flight.
85 JobSet pending_jobs_; 86 JobSet pending_jobs_;
86 87
87 DeviceManagementService* service_; 88 DeviceManagementService* service_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackendImpl); 90 DISALLOW_COPY_AND_ASSIGN(DeviceManagementBackendImpl);
90 }; 91 };
91 92
92 } // namespace policy 93 } // namespace policy
93 94
94 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_ 95 #endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698