blob: 7ac34ad4ad523d9645770cf2844ec7e7c5aecddc [file] [log] [blame]
// 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.
#include <string>
#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
#include "sync/base/sync_export.h"
namespace base {
class TaskRunner;
} // namespace base
namespace syncer {
// Invokes |done_callback| with the session name, a UTF-8 string.
SYNC_EXPORT void GetSessionName(
const scoped_refptr<base::TaskRunner>& task_runner,
const base::Callback<void(const std::string&)>& done_callback);
SYNC_EXPORT_PRIVATE std::string GetSessionNameSynchronouslyForTesting();
} // namespace syncer