OLD | NEW |
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 #include "chrome/browser/policy/testing_policy_url_fetcher_factory.h" | 5 #include "chrome/browser/policy/testing_policy_url_fetcher_factory.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "chrome/browser/policy/logging_work_scheduler.h" | 9 #include "chrome/browser/policy/logging_work_scheduler.h" |
10 #include "googleurl/src/url_parse.h" | 10 #include "googleurl/src/url_parse.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 URLFetcher* TestingPolicyURLFetcherFactory::CreateURLFetcher( | 115 URLFetcher* TestingPolicyURLFetcherFactory::CreateURLFetcher( |
116 int id, | 116 int id, |
117 const GURL& url, | 117 const GURL& url, |
118 URLFetcher::RequestType request_type, | 118 URLFetcher::RequestType request_type, |
119 URLFetcher::Delegate* delegate) { | 119 URLFetcher::Delegate* delegate) { |
120 return new TestingPolicyURLFetcher( | 120 return new TestingPolicyURLFetcher( |
121 weak_ptr_factory_.GetWeakPtr(), url, request_type, delegate); | 121 weak_ptr_factory_.GetWeakPtr(), url, request_type, delegate); |
122 } | 122 } |
123 | 123 |
124 } // namespace policy | 124 } // namespace policy |
| 125 |
OLD | NEW |