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

Side by Side Diff: components/metrics_services_manager/metrics_services_manager_client.h

Issue 2221833005: Adding support for sampling crashes in Chrome on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scottmg's comments, adding DCHECK Created 4 years, 4 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
« no previous file with comments | « components/metrics_services_manager/metrics_services_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_ 5 #ifndef COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_
6 #define COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_ 6 #define COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // the lifetime of this client instance, but should not be used beyond this 50 // the lifetime of this client instance, but should not be used beyond this
51 // instance being destroyed. 51 // instance being destroyed.
52 virtual bool IsSafeBrowsingEnabled( 52 virtual bool IsSafeBrowsingEnabled(
53 const base::Closure& on_update_callback) = 0; 53 const base::Closure& on_update_callback) = 0;
54 54
55 // Returns whether metrics reporting is enabled. 55 // Returns whether metrics reporting is enabled.
56 virtual bool IsMetricsReportingEnabled() = 0; 56 virtual bool IsMetricsReportingEnabled() = 0;
57 57
58 // Whether the metrics services should record but not report metrics. 58 // Whether the metrics services should record but not report metrics.
59 virtual bool OnlyDoMetricsRecording() = 0; 59 virtual bool OnlyDoMetricsRecording() = 0;
60
61 // Update the running state of metrics services managed by the embedder, for
62 // example, crash reporting.
63 virtual void UpdateRunningServices(bool may_record, bool may_upload) {}
60 }; 64 };
61 65
62 } // namespace metrics_services_manager 66 } // namespace metrics_services_manager
63 67
64 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H _ 68 #endif // COMPONENTS_METRICS_SERVICES_MANAGER_METRICS_SERVICES_MANAGER_CLIENT_H _
OLDNEW
« no previous file with comments | « components/metrics_services_manager/metrics_services_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698