OLD | NEW |
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 #include "chrome/browser/policy/cloud/external_policy_data_fetcher.h" | 5 #include "components/policy/core/common/cloud/external_policy_data_fetcher.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "net/base/load_flags.h" | 13 #include "net/base/load_flags.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 #include "net/url_request/url_fetcher.h" | 15 #include "net/url_request/url_fetcher.h" |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 ExternalPolicyDataFetcher::Job* job = it->second; | 258 ExternalPolicyDataFetcher::Job* job = it->second; |
259 delete it->first; | 259 delete it->first; |
260 job_map_.erase(it); | 260 job_map_.erase(it); |
261 job->callback.Run(job, | 261 job->callback.Run(job, |
262 ExternalPolicyDataFetcher::MAX_SIZE_EXCEEDED, | 262 ExternalPolicyDataFetcher::MAX_SIZE_EXCEEDED, |
263 scoped_ptr<std::string>()); | 263 scoped_ptr<std::string>()); |
264 } | 264 } |
265 } | 265 } |
266 | 266 |
267 } // namespace policy | 267 } // namespace policy |
OLD | NEW |