sync_error_factory.h 795 B

123456789101112131415161718192021222324252627
  1. // Copyright 2012 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_MODEL_SYNC_ERROR_FACTORY_H_
  5. #define COMPONENTS_SYNC_MODEL_SYNC_ERROR_FACTORY_H_
  6. #include <string>
  7. #include "base/location.h"
  8. #include "components/sync/model/sync_error.h"
  9. namespace syncer {
  10. class SyncErrorFactory {
  11. public:
  12. SyncErrorFactory() = default;
  13. virtual ~SyncErrorFactory() = default;
  14. // Creates a SyncError object and uploads this call stack to breakpad.
  15. virtual SyncError CreateAndUploadError(const base::Location& location,
  16. const std::string& message) = 0;
  17. };
  18. } // namespace syncer
  19. #endif // COMPONENTS_SYNC_MODEL_SYNC_ERROR_FACTORY_H_