| Index: compiled/subscription/DownloadableSubscription.h |
| =================================================================== |
| --- a/compiled/subscription/DownloadableSubscription.h |
| +++ b/compiled/subscription/DownloadableSubscription.h |
| @@ -65,23 +65,31 @@ |
| }; |
| typedef intrusive_ptr<DownloadableSubscription> DownloadableSubscriptionPtr; |
| class DownloadableSubscription_Parser : public ref_counted |
| { |
| std::vector<OwnedString> mFiltersText; |
| OwnedStringMap<OwnedString> mParams; |
| - bool mFirstLine; |
| public: |
| DownloadableSubscription_Parser(); |
| - void BINDINGS_EXPORTED Process(const String& line); |
| + bool BINDINGS_EXPORTED Process(const String& buffer); |
| bool BINDINGS_EXPORTED VerifyChecksum(); |
| // return the expiration interval. |
| int64_t BINDINGS_EXPORTED Finalize(DownloadableSubscription&); |
| const String& BINDINGS_EXPORTED GetRedirect() const; |
| const String& BINDINGS_EXPORTED GetHomepage() const; |
| + const String& BINDINGS_EXPORTED GetError() const |
| + { |
| + return mError; |
| + } |
| private: |
| MD5 mChecksum; |
| + DependentString mError; |
| + OwnedString mRequiredVersion; |
| OwnedString mB64Checksum; |
| static int64_t ParseExpires(const String& expires); |
| + bool ProcessFirstLine(const String& line); |
| + void ProcessLine(const String& line); |
| + static bool GetNextLine(DependentString& buffer, DependentString& line); |
| }; |