| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/net/sdch_dictionary_fetcher.h" | 5 #include "chrome/browser/net/sdch_dictionary_fetcher.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "net/url_request/url_request_status.h" | 9 #include "net/url_request/url_request_status.h" |
| 10 | 10 |
| 11 SdchDictionaryFetcher::SdchDictionaryFetcher() | 11 SdchDictionaryFetcher::SdchDictionaryFetcher() |
| 12 : ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)), | 12 : ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)), |
| 13 task_is_pending_(false) { | 13 task_is_pending_(false) { |
| 14 } | 14 } |
| 15 | 15 |
| 16 SdchDictionaryFetcher::~SdchDictionaryFetcher() { | 16 SdchDictionaryFetcher::~SdchDictionaryFetcher() { |
| 17 } | 17 } |
| 18 | 18 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 const GURL& url, | 68 const GURL& url, |
| 69 const URLRequestStatus& status, | 69 const URLRequestStatus& status, |
| 70 int response_code, | 70 int response_code, |
| 71 const ResponseCookies& cookies, | 71 const ResponseCookies& cookies, |
| 72 const std::string& data) { | 72 const std::string& data) { |
| 73 if ((200 == response_code) && (status.status() == URLRequestStatus::SUCCESS)) | 73 if ((200 == response_code) && (status.status() == URLRequestStatus::SUCCESS)) |
| 74 SdchManager::Global()->AddSdchDictionary(data, url); | 74 SdchManager::Global()->AddSdchDictionary(data, url); |
| 75 current_fetch_.reset(NULL); | 75 current_fetch_.reset(NULL); |
| 76 ScheduleDelayedRun(); | 76 ScheduleDelayedRun(); |
| 77 } | 77 } |
| OLD | NEW |