summaryrefslogtreecommitdiffstats
path: root/chromium/sync/api/sync_error_factory.h
blob: 9b306b726c112d8703c756fe0aaaf0718729cf29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2012 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 SYNC_API_SYNC_ERROR_FACTORY_H_
#define SYNC_API_SYNC_ERROR_FACTORY_H_

#include <string>

#include "base/location.h"
#include "sync/api/sync_error.h"
#include "sync/base/sync_export.h"

namespace syncer {

class SYNC_EXPORT SyncErrorFactory {
 public:
  SyncErrorFactory();
  virtual ~SyncErrorFactory();

  // Creates a SyncError object and uploads this call stack to breakpad.
  virtual SyncError CreateAndUploadError(
      const tracked_objects::Location& location,
      const std::string& message) = 0;
};

}  // namespace syncer

#endif  // SYNC_API_SYNC_ERROR_FACTORY_H_