| 12345678910111213141516171819202122232425 | 
							- #include "common.h"
 
- #include <string>
 
- #include "Cookie.h"
 
- namespace aria2 {
 
- void createFile(const std::string& filename, size_t length);
 
- std::string readFile(const std::string& path);
 
- class CookieSorter {
 
- public:
 
-   bool operator()(const Cookie& lhs, const Cookie& rhs) const
 
-   {
 
-     if(lhs.getDomain() == rhs.getDomain()) {
 
-       return lhs.getName() < rhs.getName();
 
-     } else {
 
-       return lhs.getDomain() < rhs.getDomain();
 
-     }
 
-   }
 
- };
 
- } // namespace aria2
 
 
  |