Make inherited FileHashUploader methods private.
This commit is contained in:
parent
0971292303
commit
e2c17af598
@ -36,6 +36,21 @@ class FileHashUploader final : public FileLoaderActor {
|
|||||||
: local_(local), size_(size), size_left_(size), callback_(std::move(callback)) {
|
: local_(local), size_(size), size_left_(size), callback_(std::move(callback)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
ResourceState resource_state_;
|
||||||
|
BufferedFd<FileFd> fd_;
|
||||||
|
|
||||||
|
FullLocalFileLocation local_;
|
||||||
|
int64 size_;
|
||||||
|
int64 size_left_;
|
||||||
|
unique_ptr<Callback> callback_;
|
||||||
|
|
||||||
|
ActorShared<ResourceManager> resource_manager_;
|
||||||
|
|
||||||
|
enum class State : int32 { CalcSha, NetRequest, WaitNetResult } state_ = State::CalcSha;
|
||||||
|
bool stop_flag_ = false;
|
||||||
|
Sha256State sha256_state_;
|
||||||
|
|
||||||
void set_resource_manager(ActorShared<ResourceManager> resource_manager) final {
|
void set_resource_manager(ActorShared<ResourceManager> resource_manager) final {
|
||||||
resource_manager_ = std::move(resource_manager);
|
resource_manager_ = std::move(resource_manager);
|
||||||
send_closure(resource_manager_, &ResourceManager::update_resources, resource_state_);
|
send_closure(resource_manager_, &ResourceManager::update_resources, resource_state_);
|
||||||
@ -53,21 +68,6 @@ class FileHashUploader final : public FileLoaderActor {
|
|||||||
loop();
|
loop();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
|
||||||
ResourceState resource_state_;
|
|
||||||
BufferedFd<FileFd> fd_;
|
|
||||||
|
|
||||||
FullLocalFileLocation local_;
|
|
||||||
int64 size_;
|
|
||||||
int64 size_left_;
|
|
||||||
unique_ptr<Callback> callback_;
|
|
||||||
|
|
||||||
ActorShared<ResourceManager> resource_manager_;
|
|
||||||
|
|
||||||
enum class State : int32 { CalcSha, NetRequest, WaitNetResult } state_ = State::CalcSha;
|
|
||||||
bool stop_flag_ = false;
|
|
||||||
Sha256State sha256_state_;
|
|
||||||
|
|
||||||
void start_up() final;
|
void start_up() final;
|
||||||
Status init();
|
Status init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user