page_transition_conversion.h 685 B

123456789101112131415161718192021
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_SYNC_BASE_PAGE_TRANSITION_CONVERSION_H_
  5. #define COMPONENTS_SYNC_BASE_PAGE_TRANSITION_CONVERSION_H_
  6. #include "components/sync/protocol/sync_enums.pb.h"
  7. #include "ui/base/page_transition_types.h"
  8. namespace syncer {
  9. sync_pb::SyncEnums_PageTransition ToSyncPageTransition(
  10. ui::PageTransition transition_type);
  11. ui::PageTransition FromSyncPageTransition(
  12. sync_pb::SyncEnums_PageTransition transition_type);
  13. } // namespace syncer
  14. #endif // COMPONENTS_SYNC_BASE_PAGE_TRANSITION_CONVERSION_H_