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 Created Jan. 30, 2015, 1:17 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
===================================================================
--- a/src/plugin/PluginWbPassThrough.h
+++ b/src/plugin/PluginWbPassThrough.h
@@ -1,22 +1,23 @@
-/*
- * This file is part of Adblock Plus <https://adblockplus.org/>,
- * Copyright (C) 2006-2015 Eyeo GmbH
- *
- * Adblock Plus is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 3 as
- * published by the Free Software Foundation.
- *
- * Adblock Plus is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
- */
-
+/*
+ * This file is part of Adblock Plus <https://adblockplus.org/>,
+ * Copyright (C) 2006-2015 Eyeo GmbH
+ *
+ * Adblock Plus is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 3 as
+ * published by the Free Software Foundation.
+ *
+ * Adblock Plus is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
+ */
+
#pragma once
#include <cstdint>
+#include <AdblockPlus/FilterEngine.h>
#include "ProtocolCF.h"
#include "ProtocolImpl.h"
#define IE_MAX_URL_LENGTH 2048
@@ -32,13 +33,13 @@
uint64_t m_currentPositionOfSentPage;
CComPtr<IInternetProtocol> m_pTargetProtocol;
- int m_contentType;
+ AdblockPlus::FilterEngine::ContentType m_contentType;
Eric 2015/02/02 06:58:27 This variable is only used as a local variable ins
std::wstring m_boundDomain;
Eric 2015/02/02 06:58:27 If you want to, this variable is also a local vari
sergei 2015/02/04 12:51:43 Right, they were introduced as members when we wer
bool m_isCustomResponse;
- int GetContentTypeFromMimeType(const CString& mimeType);
- int GetContentTypeFromURL(const std::wstring& src);
- int GetContentType(const CString& mimeType, const std::wstring& domain, const std::wstring& src);
+ AdblockPlus::FilterEngine::ContentType GetContentTypeFromMimeType(const CString& mimeType);
+ AdblockPlus::FilterEngine::ContentType GetContentTypeFromURL(const std::wstring& src);
+ AdblockPlus::FilterEngine::ContentType GetContentType(const CString& mimeType, const std::wstring& domain, const std::wstring& src);
Eric 2015/02/02 06:58:27 These functions are only used (ultimately) by WBPa
sergei 2015/02/04 12:51:43 I completely agree with it, it's also in the ticke
bool IsFlashRequest(const wchar_t* const* additionalHeaders);
public:
BEGIN_COM_MAP(WBPassthruSink)

Powered by Google App Engine
This is Rietveld