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

Unified Diff: common/stats_uploader.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/scheduled_task_utils_unittest.cc ('k') | common/stats_uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/stats_uploader.h
diff --git a/common/stats_uploader.h b/common/stats_uploader.h
deleted file mode 100644
index 49dca191249d8b47dfab93f45278827d37330e6c..0000000000000000000000000000000000000000
--- a/common/stats_uploader.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2008-2010 Google Inc.
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// ========================================================================
-
-// Constants for the statsreport library.
-
-#ifndef OMAHA_COMMON_STATS_UPLOADER_H__
-#define OMAHA_COMMON_STATS_UPLOADER_H__
-
-#include <windows.h>
-#include <tchar.h>
-
-namespace omaha {
-
-// The product name is chosen so that the stats are persisted under
-// the Google Update registry key for the machine or user, respectively.
-const TCHAR* const kMetricsProductName = _T("Update");
-
-const TCHAR* const kMetricsServerParamSourceId = _T("sourceid");
-const TCHAR* const kMetricsServerParamVersion = _T("v");
-const TCHAR* const kMetricsServerParamIsMachine = _T("ismachine");
-const TCHAR* const kMetricsServerTestSource = _T("testsource");
-const TCHAR* const kMetricsServerUserId = _T("ui");
-
-// Metrics are uploaded every 25 hours.
-const int kMetricsUploadIntervalSec = 25 * 60 * 60;
-
-// Deletes existing metrics and initializes 'LastTransmission' to current time.
-HRESULT ResetMetrics(bool is_machine);
-
-// Aggregates metrics by saving them in registry.
-HRESULT AggregateMetrics(bool is_machine);
-
-// Aggregates and reports the metrics if needed, as defined by the metrics
-// upload interval. The interval is ignored when 'force_report' is true.
-HRESULT AggregateAndReportMetrics(bool is_machine, bool force_report);
-
-} // namespace omaha
-
-#endif // OMAHA_COMMON_STATS_UPLOADER_H__
-
« no previous file with comments | « common/scheduled_task_utils_unittest.cc ('k') | common/stats_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698