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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_client_registration_helper.h

Issue 506633004: Remove implicit conversions from scoped_refptr to T* in components/policy/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some more changes Created 6 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
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 COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_REGISTRATION_HEL PER_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_REGISTRATION_HEL PER_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_REGISTRATION_HEL PER_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_REGISTRATION_HEL PER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
15 #include "components/policy/core/common/cloud/cloud_policy_client.h" 16 #include "components/policy/core/common/cloud/cloud_policy_client.h"
16 #include "components/policy/core/common/cloud/user_info_fetcher.h" 17 #include "components/policy/core/common/cloud/user_info_fetcher.h"
17 #include "components/policy/policy_export.h" 18 #include "components/policy/policy_export.h"
18 #include "policy/proto/device_management_backend.pb.h" 19 #include "policy/proto/device_management_backend.pb.h"
19 20
20 class OAuth2TokenService; 21 class OAuth2TokenService;
21 22
22 namespace net { 23 namespace net {
23 class URLRequestContextGetter; 24 class URLRequestContextGetter;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 #endif 101 #endif
101 102
102 // Helper class for fetching information from GAIA about the currently 103 // Helper class for fetching information from GAIA about the currently
103 // signed-in user. 104 // signed-in user.
104 scoped_ptr<UserInfoFetcher> user_info_fetcher_; 105 scoped_ptr<UserInfoFetcher> user_info_fetcher_;
105 106
106 // Access token used to register the CloudPolicyClient and also access 107 // Access token used to register the CloudPolicyClient and also access
107 // GAIA to get information about the signed in user. 108 // GAIA to get information about the signed in user.
108 std::string oauth_access_token_; 109 std::string oauth_access_token_;
109 110
110 net::URLRequestContextGetter* context_; 111 scoped_refptr<net::URLRequestContextGetter> context_;
111 CloudPolicyClient* client_; 112 CloudPolicyClient* client_;
112 enterprise_management::DeviceRegisterRequest::Type registration_type_; 113 enterprise_management::DeviceRegisterRequest::Type registration_type_;
113 base::Closure callback_; 114 base::Closure callback_;
114 115
115 DISALLOW_COPY_AND_ASSIGN(CloudPolicyClientRegistrationHelper); 116 DISALLOW_COPY_AND_ASSIGN(CloudPolicyClientRegistrationHelper);
116 }; 117 };
117 118
118 } // namespace policy 119 } // namespace policy
119 120
120 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_REGISTRATION_ HELPER_H_ 121 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_CLIENT_REGISTRATION_ HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698