Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginWbPassThrough.h

Issue 5316782940225536: Issue 1557 - Update to the recent libadblockplus to reduce additional updates in the logic later. (Closed)
Patch Set: fix accoring to comments Created Jan. 13, 2015, 12:59 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginWbPassThrough.h
diff --git a/src/plugin/PluginWbPassThrough.h b/src/plugin/PluginWbPassThrough.h
index 35de08b23c5b26d435587ebd06119081fd350534..9c875ca69bd633b409321797c3357cfd5313d347 100644
--- a/src/plugin/PluginWbPassThrough.h
+++ b/src/plugin/PluginWbPassThrough.h
@@ -1,5 +1,6 @@
#pragma once
#include <cstdint>
+#include <AdblockPlus/FilterEngine.h>
#include "ProtocolCF.h"
#include "ProtocolImpl.h"
#define IE_MAX_URL_LENGTH 2048
@@ -15,13 +16,13 @@ public:
uint64_t m_currentPositionOfSentPage;
CComPtr<IInternetProtocol> m_pTargetProtocol;
- int m_contentType;
+ AdblockPlus::FilterEngine::ContentType m_contentType;
std::wstring m_boundDomain;
bool m_isCustomResponse;
- int GetContentTypeFromMimeType(const CString& mimeType);
- int GetContentTypeFromURL(const CString& src);
- int GetContentType(const CString& mimeType, const std::wstring& domain, const CString& src);
+ AdblockPlus::FilterEngine::ContentType GetContentTypeFromMimeType(const CString& mimeType);
+ AdblockPlus::FilterEngine::ContentType GetContentTypeFromURL(const CString& src);
+ AdblockPlus::FilterEngine::ContentType GetContentType(const CString& mimeType, const std::wstring& domain, const CString& src);
bool IsFlashRequest(const wchar_t* const* additionalHeaders);
public:
BEGIN_COM_MAP(WBPassthruSink)

Powered by Google App Engine
This is Rietveld