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

Side by Side Diff: include/AdblockPlus/FilterEngine.h

Issue 11339006: GetAppLocale and GetDocumentationLink for IE faking (Closed)
Patch Set: Created Aug. 1, 2013, 7:36 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/FilterEngine.cpp » ('j') | src/FilterEngine.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2013 Eyeo GmbH 3 * Copyright (C) 2006-2013 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 std::vector<FilterPtr> GetListedFilters() const; 78 std::vector<FilterPtr> GetListedFilters() const;
79 std::vector<SubscriptionPtr> GetListedSubscriptions() const; 79 std::vector<SubscriptionPtr> GetListedSubscriptions() const;
80 std::vector<SubscriptionPtr> FetchAvailableSubscriptions() const; 80 std::vector<SubscriptionPtr> FetchAvailableSubscriptions() const;
81 FilterPtr Matches(const std::string& url, 81 FilterPtr Matches(const std::string& url,
82 const std::string& contentType, 82 const std::string& contentType,
83 const std::string& documentUrl) const; 83 const std::string& documentUrl) const;
84 std::vector<std::string> GetElementHidingSelectors(const std::string& domain ) const; 84 std::vector<std::string> GetElementHidingSelectors(const std::string& domain ) const;
85 JsValuePtr GetPref(const std::string& pref) const; 85 JsValuePtr GetPref(const std::string& pref) const;
86 void SetPref(const std::string& pref, JsValuePtr value); 86 void SetPref(const std::string& pref, JsValuePtr value);
87 void ForceUpdateCheck(UpdaterCallback callback = 0); 87 void ForceUpdateCheck(UpdaterCallback callback = 0);
88 std::string GetAppLocale();
89 std::string GetDocumentationLink();
88 90
89 private: 91 private:
90 JsEnginePtr jsEngine; 92 JsEnginePtr jsEngine;
91 bool initialized; 93 bool initialized;
92 bool firstRun; 94 bool firstRun;
93 int updateCheckId; 95 int updateCheckId;
94 96
95 void InitDone(JsValueList& params); 97 void InitDone(JsValueList& params);
96 void UpdateCheckDone(const std::string& eventName, UpdaterCallback callback, JsValueList& params); 98 void UpdateCheckDone(const std::string& eventName, UpdaterCallback callback, JsValueList& params);
97 }; 99 };
98 } 100 }
99 101
100 #endif 102 #endif
OLDNEW
« no previous file with comments | « no previous file | src/FilterEngine.cpp » ('j') | src/FilterEngine.cpp » ('J')

Powered by Google App Engine
This is Rietveld