浏览代码

Cleanup RequestGroup code a bit

Nils Maier 12 年之前
父节点
当前提交
29d569eef9
共有 2 个文件被更改,包括 412 次插入418 次删除
  1. 402 408
      src/RequestGroup.cc
  2. 10 10
      src/RequestGroup.h

文件差异内容过多而无法显示
+ 402 - 408
src/RequestGroup.cc


+ 10 - 10
src/RequestGroup.h

@@ -194,8 +194,8 @@ private:
   // returns error_code::UNKNOWN_ERROR.
   error_code::Value downloadResult() const;
 
-  void removeDefunctControlFile
-  (const std::shared_ptr<BtProgressInfoFile>& progressInfoFile);
+  void removeDefunctControlFile(
+      const std::shared_ptr<BtProgressInfoFile>& progressInfoFile);
 
 public:
   RequestGroup(const std::shared_ptr<GroupId>& gid,
@@ -218,9 +218,8 @@ public:
   void createInitialCommand(std::vector<std::unique_ptr<Command>>& commands,
                             DownloadEngine* e);
 
-  void createNextCommandWithAdj
-  (std::vector<std::unique_ptr<Command>>& commands,
-   DownloadEngine* e, int numAdj);
+  void createNextCommandWithAdj(std::vector<std::unique_ptr<Command>>& commands,
+                                DownloadEngine* e, int numAdj);
 
   void createNextCommand(std::vector<std::unique_ptr<Command>>& commands,
                          DownloadEngine* e, int numCommand);
@@ -290,7 +289,8 @@ public:
 
   void setPieceStorage(const std::shared_ptr<PieceStorage>& pieceStorage);
 
-  void setProgressInfoFile(const std::shared_ptr<BtProgressInfoFile>& progressInfoFile);
+  void setProgressInfoFile(
+      const std::shared_ptr<BtProgressInfoFile>& progressInfoFile);
 
   void increaseStreamCommand();
 
@@ -385,10 +385,10 @@ public:
 
   void clearPreDownloadHandler();
 
-  void processCheckIntegrityEntry
-  (std::vector<std::unique_ptr<Command>>& commands,
-   std::unique_ptr<CheckIntegrityEntry> entry,
-   DownloadEngine* e);
+  void processCheckIntegrityEntry(
+      std::vector<std::unique_ptr<Command>>& commands,
+      std::unique_ptr<CheckIntegrityEntry> entry,
+      DownloadEngine* e);
 
   // Initializes pieceStorage_ and segmentMan_.  We guarantee that
   // either both of pieceStorage_ and segmentMan_ are initialized or

部分文件因为文件数量过多而无法显示