Skip to content

Commit

Permalink
Fix some td/actor/ includes.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: f9cf960b96018c4eb6169d2ec6cb5d3fbc16c0ec
  • Loading branch information
levlam committed Jul 3, 2018
1 parent b28ec40 commit deecdb6
Show file tree
Hide file tree
Showing 76 changed files with 105 additions and 40 deletions.
3 changes: 3 additions & 0 deletions benchmark/bench_tddb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include "td/telegram/MessagesDb.h"
#include "td/telegram/UserId.h"

#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"

#include "td/utils/benchmark.h"
#include "td/utils/buffer.h"
#include "td/utils/common.h"
Expand Down
1 change: 1 addition & 0 deletions td/mtproto/NoCryptoStorer.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once

#include "td/mtproto/PacketStorer.h"

#include "td/utils/Random.h"
Expand Down
1 change: 1 addition & 0 deletions td/mtproto/RawConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once

#include "td/mtproto/IStreamTransport.h"

#include "td/utils/buffer.h"
Expand Down
4 changes: 2 additions & 2 deletions td/mtproto/SessionConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include "td/mtproto/RawConnection.h"
#include "td/mtproto/utils.h"

#include "td/actor/actor.h"

#include "td/utils/buffer.h"
#include "td/utils/format.h"
#include "td/utils/Named.h"
Expand Down Expand Up @@ -47,6 +45,7 @@ class msg_new_detailed_info;
} // namespace mtproto_api

namespace mtproto {

class AuthData;
struct PacketInfo;

Expand Down Expand Up @@ -249,5 +248,6 @@ class SessionConnection
Status on_raw_packet(const td::mtproto::PacketInfo &info, BufferSlice packet) override;
Status on_quick_ack(uint64 quick_ack_token) override;
};

} // namespace mtproto
} // namespace td
1 change: 1 addition & 0 deletions td/telegram/AnimationsManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "td/telegram/telegram_api.h"

#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"

#include "td/telegram/files/FileId.h"
#include "td/telegram/Photo.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/AnimationsManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once

#include "td/telegram/AnimationsManager.h"

#include "td/telegram/files/FileId.hpp"
Expand Down
2 changes: 0 additions & 2 deletions td/telegram/AudiosManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
//
#include "td/telegram/AudiosManager.h"

#include "td/actor/PromiseFuture.h"

#include "td/telegram/DocumentsManager.h"
#include "td/telegram/files/FileManager.h"
#include "td/telegram/Global.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/AudiosManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once

#include "td/telegram/AudiosManager.h"

#include "td/telegram/files/FileId.hpp"
Expand Down
2 changes: 2 additions & 0 deletions td/telegram/AuthManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"

#include "td/actor/actor.h"

#include "td/utils/common.h"
#include "td/utils/Slice.h"
#include "td/utils/Status.h"
Expand Down
2 changes: 2 additions & 0 deletions td/telegram/AuthManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once

#include "td/telegram/AuthManager.h"

#include "td/telegram/Version.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/CallbackQueriesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"

#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"

#include "td/telegram/AccessRights.h"
Expand Down
2 changes: 2 additions & 0 deletions td/telegram/CallbackQueriesManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "td/telegram/MessageId.h"
#include "td/telegram/UserId.h"

#include "td/actor/PromiseFuture.h"

#include "td/utils/buffer.h"
#include "td/utils/common.h"

Expand Down
2 changes: 2 additions & 0 deletions td/telegram/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include "td/telegram/Td.h"

#include "td/actor/actor.h"

#include "td/utils/crypto.h"
#include "td/utils/logging.h"
#include "td/utils/MpscPollableQueue.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/ConfigManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "td/telegram/telegram_api.h"

#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"

#include "td/utils/port/IPAddress.h"
#include "td/utils/Slice.h"
Expand Down
3 changes: 3 additions & 0 deletions td/telegram/DialogDb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

#include "td/telegram/Version.h"

#include "td/actor/actor.h"
#include "td/actor/SchedulerLocalStorage.h"

#include "td/db/SqliteDb.h"
#include "td/db/SqliteKeyValue.h"
#include "td/db/SqliteStatement.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/DocumentsManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once

#include "td/telegram/DocumentsManager.h"

#include "td/telegram/files/FileId.hpp"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/Game.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once

#include "td/telegram/Game.h"

#include "td/telegram/AnimationsManager.hpp"
Expand Down
1 change: 0 additions & 1 deletion td/telegram/Global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "td/telegram/net/TempAuthKeyWatchdog.h"
#include "td/telegram/TdDb.h"

#include "td/actor/MultiPromise.h"
#include "td/actor/PromiseFuture.h"

#include "td/utils/format.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/InlineQueriesManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "td/actor/actor.h"
#include "td/actor/MultiPromise.h"
#include "td/actor/PromiseFuture.h"
#include "td/actor/Timeout.h"

#include "td/telegram/DialogId.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/LanguagePackManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "td/telegram/net/NetQueryDispatcher.h"

#include "td/utils/logging.h"
#include "td/utils/misc.h"

#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/LanguagePackManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "td/actor/PromiseFuture.h"

#include "td/utils/Container.h"
#include "td/utils/Status.h"

namespace td {

Expand Down
2 changes: 2 additions & 0 deletions td/telegram/MessagesDb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
#include "td/db/SqliteDb.h"
#include "td/db/SqliteStatement.h"

#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"
#include "td/actor/SchedulerLocalStorage.h"

#include "td/utils/format.h"
#include "td/utils/logging.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/MessagesManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"

#include "td/actor/actor.h"
#include "td/actor/MultiPromise.h"
#include "td/actor/PromiseFuture.h"
#include "td/actor/SignalSlot.h"
Expand Down
3 changes: 3 additions & 0 deletions td/telegram/PasswordManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include "td/telegram/net/NetQuery.h"
#include "td/telegram/SecureStorage.h"

#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"

#include "td/utils/Container.h"
#include "td/utils/logging.h"
#include "td/utils/optional.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/PrivacyManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"

#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"

#include "td/telegram/net/NetQuery.h"
Expand Down
4 changes: 2 additions & 2 deletions td/telegram/SecretChatsManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
//
#pragma once

#include "td/telegram/SecretChatActor.h"

#include "td/telegram/secret_api.h"
#include "td/telegram/telegram_api.h"

#include "td/telegram/logevent/SecretChatEvent.h"
#include "td/telegram/PtsManager.h"
#include "td/telegram/SecretChatActor.h"
#include "td/telegram/SecretChatId.h"

#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"

#include "td/db/binlog/BinlogEvent.h"

Expand Down
5 changes: 3 additions & 2 deletions td/telegram/SecureManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@
//
#pragma once

#include "td/actor/actor.h"

#include "td/telegram/net/NetQuery.h"
#include "td/telegram/SecureValue.h"
#include "td/telegram/UserId.h"

#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"

#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"

#include "td/utils/Container.h"
#include "td/utils/Status.h"

Expand Down
2 changes: 0 additions & 2 deletions td/telegram/SecureStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include "td/utils/Slice.h"
#include "td/utils/Status.h"

#include "td/actor/actor.h"

namespace td {
// Types
// Password
Expand Down
2 changes: 2 additions & 0 deletions td/telegram/SequenceDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#include "td/telegram/Global.h"
#include "td/telegram/net/NetQueryDispatcher.h"

#include "td/actor/PromiseFuture.h"

#include "td/utils/format.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"
Expand Down
2 changes: 2 additions & 0 deletions td/telegram/SequenceDispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

#include "td/telegram/net/NetQuery.h"

#include "td/actor/actor.h"

#include "td/utils/common.h"
#include "td/utils/Random.h"

Expand Down
1 change: 1 addition & 0 deletions td/telegram/StickersManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once

#include "td/telegram/StickersManager.h"

#include "td/telegram/files/FileId.hpp"
Expand Down
1 change: 0 additions & 1 deletion td/telegram/TdDb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "td/telegram/TdParameters.h"
#include "td/telegram/Version.h"

#include "td/actor/actor.h"
#include "td/actor/MultiPromise.h"

#include "td/db/BinlogKeyValue.h"
Expand Down
2 changes: 2 additions & 0 deletions td/telegram/TdDb.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//
#pragma once

#include "td/actor/PromiseFuture.h"

#include "td/db/binlog/Binlog.h"
#include "td/db/binlog/BinlogEvent.h"
#include "td/db/binlog/ConcurrentBinlog.h"
Expand Down
2 changes: 2 additions & 0 deletions td/telegram/UpdatesManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"

#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"
#include "td/actor/Timeout.h"

#include "td/utils/common.h"

#include <map>
Expand Down
2 changes: 0 additions & 2 deletions td/telegram/VideoNotesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"

#include "td/actor/PromiseFuture.h"

#include "td/telegram/DocumentsManager.h"
#include "td/telegram/files/FileManager.h"
#include "td/telegram/SecretChatActor.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/VideoNotesManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once

#include "td/telegram/VideoNotesManager.h"

#include "td/telegram/files/FileId.hpp"
Expand Down
2 changes: 0 additions & 2 deletions td/telegram/VideosManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"

#include "td/actor/PromiseFuture.h"

#include "td/telegram/AuthManager.h"
#include "td/telegram/DocumentsManager.h"
#include "td/telegram/files/FileManager.h"
Expand Down
1 change: 1 addition & 0 deletions td/telegram/VideosManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once

#include "td/telegram/VideosManager.h"

#include "td/telegram/files/FileId.hpp"
Expand Down
2 changes: 0 additions & 2 deletions td/telegram/VoiceNotesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include "td/telegram/td_api.h"
#include "td/telegram/telegram_api.h"

#include "td/actor/PromiseFuture.h"

#include "td/telegram/DocumentsManager.h"
#include "td/telegram/files/FileManager.h"
#include "td/telegram/Global.h"
Expand Down
3 changes: 0 additions & 3 deletions td/telegram/files/FileDownloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

#include "td/telegram/telegram_api.h"

#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"

#include "td/telegram/files/FileLoader.h"
#include "td/telegram/files/FileLocation.h"
#include "td/telegram/net/DcId.h"
Expand Down
2 changes: 2 additions & 0 deletions td/telegram/files/FileHashUploader.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "td/telegram/files/FileLocation.h"
#include "td/telegram/files/ResourceManager.h"

#include "td/actor/actor.h"

#include "td/utils/BufferedFd.h"
#include "td/utils/crypto.h"
#include "td/utils/port/FileFd.h"
Expand Down
1 change: 0 additions & 1 deletion td/telegram/files/FileLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#pragma once

#include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h"

#include "td/telegram/files/FileLoaderActor.h"
#include "td/telegram/files/FileLocation.h"
Expand Down
Loading

0 comments on commit deecdb6

Please sign in to comment.