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 #import "ios/chrome/browser/updatable_config/updatable_config_base.h" | 5 #import "ios/chrome/browser/updatable_config/updatable_config_base.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #import "base/mac/bind_objc_block.h" | 10 #import "base/mac/bind_objc_block.h" |
9 #include "base/mac/scoped_nsobject.h" | 11 #include "base/mac/scoped_nsobject.h" |
10 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
12 #import "ios/public/provider/chrome/browser/chrome_browser_provider.h" | 14 #import "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
13 #import "ios/public/provider/chrome/browser/updatable_resource_provider.h" | 15 #import "ios/public/provider/chrome/browser/updatable_resource_provider.h" |
14 #include "ios/web/public/web_thread.h" | 16 #include "ios/web/public/web_thread.h" |
15 #import "net/base/mac/url_conversions.h" | 17 #import "net/base/mac/url_conversions.h" |
16 #include "net/http/http_status_code.h" | 18 #include "net/http/http_status_code.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 return; | 262 return; |
261 if (!_configFetcher) { | 263 if (!_configFetcher) { |
262 _configFetcher.reset( | 264 _configFetcher.reset( |
263 new ConfigFetcher(self, [_updatableResource descriptor])); | 265 new ConfigFetcher(self, [_updatableResource descriptor])); |
264 } | 266 } |
265 GURL url = net::GURLWithNSURL([[_updatableResource descriptor] updateURL]); | 267 GURL url = net::GURLWithNSURL([[_updatableResource descriptor] updateURL]); |
266 _configFetcher->Fetch(url, _requestContextGetter.get()); | 268 _configFetcher->Fetch(url, _requestContextGetter.get()); |
267 } | 269 } |
268 | 270 |
269 @end | 271 @end |
OLD | NEW |