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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.h

Issue 2522593008: Delete the stability file on clean exit. (Closed)
Patch Set: Strip extra whitespace Created 4 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
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_metrics_service_client.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque>
10 #include <memory> 11 #include <memory>
11 #include <queue> 12 #include <queue>
12 #include <string> 13 #include <string>
13 14
14 #include "base/callback.h" 15 #include "base/callback.h"
15 #include "base/macros.h" 16 #include "base/macros.h"
16 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
17 #include "base/threading/thread_checker.h" 18 #include "base/threading/thread_checker.h"
18 #include "build/build_config.h" 19 #include "build/build_config.h"
19 #include "chrome/browser/metrics/metrics_memory_details.h" 20 #include "chrome/browser/metrics/metrics_memory_details.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // metrics::MetricsServiceClient: 66 // metrics::MetricsServiceClient:
66 metrics::MetricsService* GetMetricsService() override; 67 metrics::MetricsService* GetMetricsService() override;
67 void SetMetricsClientId(const std::string& client_id) override; 68 void SetMetricsClientId(const std::string& client_id) override;
68 int32_t GetProduct() override; 69 int32_t GetProduct() override;
69 std::string GetApplicationLocale() override; 70 std::string GetApplicationLocale() override;
70 bool GetBrand(std::string* brand_code) override; 71 bool GetBrand(std::string* brand_code) override;
71 metrics::SystemProfileProto::Channel GetChannel() override; 72 metrics::SystemProfileProto::Channel GetChannel() override;
72 std::string GetVersionString() override; 73 std::string GetVersionString() override;
73 void OnEnvironmentUpdate(std::string* serialized_environment) override; 74 void OnEnvironmentUpdate(std::string* serialized_environment) override;
74 void OnLogUploadComplete() override; 75 void OnLogUploadComplete() override;
76 void OnLogCleanShutdown() override;
75 void InitializeSystemProfileMetrics( 77 void InitializeSystemProfileMetrics(
76 const base::Closure& done_callback) override; 78 const base::Closure& done_callback) override;
77 void CollectFinalMetricsForLog(const base::Closure& done_callback) override; 79 void CollectFinalMetricsForLog(const base::Closure& done_callback) override;
78 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader( 80 std::unique_ptr<metrics::MetricsLogUploader> CreateUploader(
79 const base::Callback<void(int)>& on_upload_complete) override; 81 const base::Callback<void(int)>& on_upload_complete) override;
80 base::TimeDelta GetStandardUploadInterval() override; 82 base::TimeDelta GetStandardUploadInterval() override;
81 base::string16 GetRegistryBackupKey() override; 83 base::string16 GetRegistryBackupKey() override;
82 void OnPluginLoadingError(const base::FilePath& plugin_path) override; 84 void OnPluginLoadingError(const base::FilePath& plugin_path) override;
83 bool IsReportingPolicyManaged() override; 85 bool IsReportingPolicyManaged() override;
84 metrics::EnableMetricsDefault GetMetricsReportingDefaultState() override; 86 metrics::EnableMetricsDefault GetMetricsReportingDefaultState() override;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // Whether this client has already uploaded profiler data during this session. 222 // Whether this client has already uploaded profiler data during this session.
221 // Profiler data is uploaded at most once per session. 223 // Profiler data is uploaded at most once per session.
222 bool has_uploaded_profiler_data_; 224 bool has_uploaded_profiler_data_;
223 225
224 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; 226 base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_;
225 227
226 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); 228 DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient);
227 }; 229 };
228 230
229 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_ 231 #endif // CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/chrome_metrics_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698