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

Unified Diff: src/plugin/AdblockPlusClient.h

Issue 11062004: Don't use std::string in the plugin, convert when communicating with the engine (Closed)
Patch Set: Created June 27, 2013, 10:37 a.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
« no previous file with comments | « no previous file | src/plugin/AdblockPlusClient.cpp » ('j') | src/plugin/PluginFilter.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/AdblockPlusClient.h
===================================================================
--- a/src/plugin/AdblockPlusClient.h
+++ b/src/plugin/AdblockPlusClient.h
@@ -10,9 +10,9 @@
struct SubscriptionDescription
{
- std::string url;
- std::string title;
- std::string specialization;
+ std::wstring url;
+ std::wstring title;
+ std::wstring specialization;
bool listed;
};
@@ -45,19 +45,19 @@
bool ShouldBlock(CString src, int contentType, const CString& domain, bool addDebug=false);
bool IsElementHidden(const CString& tag, IHTMLElement* pEl, const CString& domain, const CString& indent, CPluginFilter* filter);
- bool IsWhitelistedUrl(const std::string& url);
+ bool IsWhitelistedUrl(const std::wstring& url);
int GetIEVersion();
- bool Matches(const std::string& url, const std::string& contentType, const std::string& domain);
- std::vector<std::string> GetElementHidingSelectors(const std::string& domain);
+ bool Matches(const std::wstring& url, const std::wstring& contentType, const std::wstring& domain);
+ std::vector<std::wstring> GetElementHidingSelectors(const std::wstring& domain);
std::vector<SubscriptionDescription> FetchAvailableSubscriptions();
std::vector<SubscriptionDescription> GetListedSubscriptions();
- void SetSubscription(std::string url);
+ void SetSubscription(const std::wstring& url);
void UpdateAllSubscriptions();
- std::vector<std::string> GetExceptionDomains();
- void AddFilter(const std::string& text);
- void RemoveFilter(const std::string& text);
+ std::vector<std::wstring> GetExceptionDomains();
+ void AddFilter(const std::wstring& text);
+ void RemoveFilter(const std::wstring& text);
};
#endif // _ADBLOCK_PLUS_CLIENT_H_
« no previous file with comments | « no previous file | src/plugin/AdblockPlusClient.cpp » ('j') | src/plugin/PluginFilter.cpp » ('J')

Powered by Google App Engine
This is Rietveld