blob: f7efd3d3b2f1379d93b05fc0e6774caa12cb9690 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_PROFILES_REPORTING_UTIL_H_
#define CHROME_BROWSER_PROFILES_REPORTING_UTIL_H_
#include "components/enterprise/common/proto/connectors.pb.h"
class Profile;
namespace base {
class Value;
} // namespace base
namespace reporting {
// Fetches additional information that is common to every event. Fetches and
// returns corresponding info to a Device, Browser and Profile protos defined in
// google3/google/internal/chrome/reporting/v1/chromereporting.proto.
base::Value GetContext(Profile* profile);
// Fetches the same information as GetContext, but in a protobuf instead of a
// Value.
enterprise_connectors::ClientMetadata GetContextAsClientMetadata(
Profile* profile);
} // namespace reporting
#endif // CHROME_BROWSER_PROFILES_REPORTING_UTIL_H_