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

Side by Side Diff: chrome/browser/net/sdch_dictionary_fetcher.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/net/resolve_proxy_msg_helper.cc ('k') | chrome/browser/net/ssl_config_service_manager_pref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698