chromium/components/keyed_service/core/service_access_type.h

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_KEYED_SERVICE_CORE_SERVICE_ACCESS_TYPE_H_
#define COMPONENTS_KEYED_SERVICE_CORE_SERVICE_ACCESS_TYPE_H_

// Some KeyedServices are accessed with the following parameter. This parameter
// defines what the caller plans to do with the service.
//
// The caller is responsible for not performing any operation that would
// result in persistent implicit records while using an OffTheRecord context.
// This flag allows the context to perform an additional check.
//
// It also leaves an opportunity to perform further checks in the future. For
// example an history service that only allow some specific methods could be
// returned.
enum class ServiceAccessType {};

#endif  // COMPONENTS_KEYED_SERVICE_CORE_SERVICE_ACCESS_TYPE_H_