diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-22 23:19:41 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-22 23:19:41 +0900 |
| commit | 461a542c5e236a22bb4edba3fae9610df4ba44c6 (patch) | |
| tree | 47898cc7a938ff49866b8889095b651c54e3df3c /src/RequestGroup.h | |
| parent | 9d294741fd1bb469ed6be4e46af2f6521ce75054 (diff) | |
Rewritten DownloadHandlerConstants
DownloadHandlerConstants was simplified. MIME type handling in Accept
header was also reworked. DownloadContext's metalinkServerContacted_
is replaced with acceptMetalink_ and its boolean value is reverted.
RequestGroup and HttpRequest now do not hold vector of accepting
types. HttpRequest has the flag acceptMetalink_ which will be set by
the same value of DownloadContext::accpetMetalink_ and if it is true,
Metalink MIME types are added to Accept header field.
Diffstat (limited to 'src/RequestGroup.h')
| -rw-r--r-- | src/RequestGroup.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/RequestGroup.h b/src/RequestGroup.h index a2044aa6..4a6e1ad4 100644 --- a/src/RequestGroup.h +++ b/src/RequestGroup.h @@ -138,8 +138,6 @@ private: std::vector<SharedHandle<PostDownloadHandler> > postDownloadHandlers_; - std::vector<std::string> acceptTypes_; - SharedHandle<URISelector> uriSelector_; Time lastModifiedTime_; @@ -410,26 +408,6 @@ public: void reportDownloadFinished(); - const std::vector<std::string>& getAcceptTypes() const - { - return acceptTypes_; - } - - void addAcceptType(const std::string& type); - - template<typename InputIterator> - void addAcceptType(InputIterator first, InputIterator last) - { - for(; first != last; ++first) { - if(std::find(acceptTypes_.begin(), acceptTypes_.end(), *first) == - acceptTypes_.end()) { - acceptTypes_.push_back(*first); - } - } - } - - void removeAcceptType(const std::string& type); - void setURISelector(const SharedHandle<URISelector>& uriSelector); const SharedHandle<URISelector>& getURISelector() const |
