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

Side by Side Diff: chrome_frame/metrics_service.cc

Issue 6166010: net: Remove typedef net::URLRequestStatus URLRequestStatus; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months 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
« no previous file with comments | « chrome_frame/external_tab.cc ('k') | chrome_frame/npapi_url_request.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 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
6 //------------------------------------------------------------------------------ 5 //------------------------------------------------------------------------------
7 // Description of the life cycle of a instance of MetricsService. 6 // Description of the life cycle of a instance of MetricsService.
8 // 7 //
9 // OVERVIEW 8 // OVERVIEW
10 // 9 //
11 // A MetricsService instance is created at ChromeFrame startup in 10 // A MetricsService instance is created at ChromeFrame startup in
12 // the IE process. It is the central controller for the UMA log data. 11 // the IE process. It is the central controller for the UMA log data.
13 // Its major job is to manage logs, prepare them for transmission. 12 // Its major job is to manage logs, prepare them for transmission.
14 // Currently only histogram data is tracked in log. When MetricsService 13 // Currently only histogram data is tracked in log. When MetricsService
15 // prepares log for submission it snapshots the current stats of histograms, 14 // prepares log for submission it snapshots the current stats of histograms,
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 326
328 fetcher_->set_request_context(new ChromeFrameUploadRequestContextGetter( 327 fetcher_->set_request_context(new ChromeFrameUploadRequestContextGetter(
329 message_loop)); 328 message_loop));
330 fetcher_->set_upload_data(kMetricsType, upload_data); 329 fetcher_->set_upload_data(kMetricsType, upload_data);
331 fetcher_->Start(); 330 fetcher_->Start();
332 } 331 }
333 332
334 // URLFetcher::Delegate 333 // URLFetcher::Delegate
335 virtual void OnURLFetchComplete(const URLFetcher* source, 334 virtual void OnURLFetchComplete(const URLFetcher* source,
336 const GURL& url, 335 const GURL& url,
337 const URLRequestStatus& status, 336 const net::URLRequestStatus& status,
338 int response_code, 337 int response_code,
339 const ResponseCookies& cookies, 338 const ResponseCookies& cookies,
340 const std::string& data) { 339 const std::string& data) {
341 DVLOG(1) << __FUNCTION__ << base::StringPrintf( 340 DVLOG(1) << __FUNCTION__ << base::StringPrintf(
342 ": url : %hs, status:%d, response code: %d\n", url.spec().c_str(), 341 ": url : %hs, status:%d, response code: %d\n", url.spec().c_str(),
343 status.status(), response_code); 342 status.status(), response_code);
344 delete fetcher_; 343 delete fetcher_;
345 fetcher_ = NULL; 344 fetcher_ = NULL;
346 345
347 PostTask(FROM_HERE, 346 PostTask(FROM_HERE,
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 version += "-F"; 615 version += "-F";
617 if (!version_info.IsOfficialBuild()) 616 if (!version_info.IsOfficialBuild())
618 version.append("-devel"); 617 version.append("-devel");
619 return version; 618 return version;
620 } else { 619 } else {
621 NOTREACHED() << "Unable to retrieve version string."; 620 NOTREACHED() << "Unable to retrieve version string.";
622 } 621 }
623 622
624 return std::string(); 623 return std::string();
625 } 624 }
OLDNEW
« no previous file with comments | « chrome_frame/external_tab.cc ('k') | chrome_frame/npapi_url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698