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

Delta Between Two Patch Sets: shell/src/SubscriptionsCommand.h

Issue 9987009: Interface for the libadblockplus API (Closed)
Left Patch Set: Renamed match method, added tests for the stubs Created March 26, 2013, 3:39 p.m.
Right Patch Set: Reduce redundant redundancy Created March 27, 2013, 6:45 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
1 #ifndef SUBSCRIPTIONS_COMMAND_H 1 #ifndef SUBSCRIPTIONS_COMMAND_H
2 #define SUBSCRIPTIONS_COMMAND_H 2 #define SUBSCRIPTIONS_COMMAND_H
3 3
4 #include <AdblockPlus.h> 4 #include <AdblockPlus.h>
5 #include <string> 5 #include <string>
6 6
7 #include "Command.h" 7 #include "Command.h"
8 8
9 class SubscriptionsCommand : public Command 9 class SubscriptionsCommand : public Command
10 { 10 {
11 public: 11 public:
12 explicit SubscriptionsCommand(AdblockPlus::JsEngine& jsEngine); 12 explicit SubscriptionsCommand(AdblockPlus::FilterEngine& filterEngine);
13 void operator()(const std::string& arguments); 13 void operator()(const std::string& arguments);
14 std::string GetDescription() const; 14 std::string GetDescription() const;
15 std::string GetUsage() const; 15 std::string GetUsage() const;
16 16
17 private: 17 private:
18 AdblockPlus::JsEngine& jsEngine; 18 AdblockPlus::FilterEngine& filterEngine;
19 19
20 void ShowSubscriptions(); 20 void ShowSubscriptions();
21 void AddSubscription(const std::string& url); 21 void AddSubscription(const std::string& url, const std::string& title);
22 void RemoveSubscription(const std::string& url); 22 void RemoveSubscription(const std::string& url);
23 void UpdateSubscriptions(); 23 void UpdateSubscriptions();
24 void FetchSubscriptions();
24 }; 25 };
25 26
26 #endif 27 #endif
LEFTRIGHT

Powered by Google App Engine
This is Rietveld