Loosen up heuristics for detecting account creation forms.
[chromium-blink-merge.git] / sync / util / get_session_name.h
blob3b8dd5aeeed7b0a18cdf53cef1e5a1a863ae2ffc
1 // Copyright (c) 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.
5 #ifndef SYNC_UTIL_GET_SESSION_NAME_H_
6 #define SYNC_UTIL_GET_SESSION_NAME_H_
8 #include <string>
10 #include "base/callback_forward.h"
11 #include "base/memory/ref_counted.h"
13 namespace base {
14 class TaskRunner;
15 } // namespace base
17 namespace syncer {
19 void GetSessionName(
20 const scoped_refptr<base::TaskRunner>& task_runner,
21 const base::Callback<void(const std::string&)>& done_callback);
23 std::string GetSessionNameSynchronouslyForTesting();
25 } // namespace syncer
27 #endif // SYNC_UTIL_GET_SESSION_NAME_H_