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

Side by Side Diff: compiled/subscription/DownloadableSubscription.h

Issue 29425555: Issue 5201 - [emscripten] Replace EM_ASM calls by a custom JavaScript library (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Moved all declarations into a single header and corrected emscripten.h includes Created April 30, 2017, 3:14 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 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
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 * 13 *
14 * You should have received a copy of the GNU General Public License 14 * You should have received a copy of the GNU General Public License
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18 #pragma once 18 #pragma once
19 19
20 #include <emscripten.h>
21
20 #include "Subscription.h" 22 #include "Subscription.h"
21 23
22 class DownloadableSubscription : public Subscription 24 class DownloadableSubscription : public Subscription
23 { 25 {
24 public: 26 public:
25 explicit DownloadableSubscription(const String& id); 27 explicit DownloadableSubscription(const String& id);
26 28
27 SUBSCRIPTION_PROPERTY(bool, mFixedTitle, SUBSCRIPTION_FIXEDTITLE, 29 SUBSCRIPTION_PROPERTY(bool, mFixedTitle, SUBSCRIPTION_FIXEDTITLE,
28 GetFixedTitle, SetFixedTitle); 30 GetFixedTitle, SetFixedTitle);
29 SUBSCRIPTION_STRING_PROPERTY(mHomepage, SUBSCRIPTION_HOMEPAGE, 31 SUBSCRIPTION_STRING_PROPERTY(mHomepage, SUBSCRIPTION_HOMEPAGE,
(...skipping 14 matching lines...) Expand all
44 GetErrorCount, SetErrorCount); 46 GetErrorCount, SetErrorCount);
45 SUBSCRIPTION_PROPERTY(uint64_t, mDataRevision, NONE, 47 SUBSCRIPTION_PROPERTY(uint64_t, mDataRevision, NONE,
46 GetDataRevision, SetDataRevision); 48 GetDataRevision, SetDataRevision);
47 SUBSCRIPTION_STRING_PROPERTY(mRequiredVersion, NONE, 49 SUBSCRIPTION_STRING_PROPERTY(mRequiredVersion, NONE,
48 GetRequiredVersion, SetRequiredVersion); 50 GetRequiredVersion, SetRequiredVersion);
49 SUBSCRIPTION_PROPERTY(int, mDownloadCount, NONE, 51 SUBSCRIPTION_PROPERTY(int, mDownloadCount, NONE,
50 GetDownloadCount, SetDownloadCount); 52 GetDownloadCount, SetDownloadCount);
51 53
52 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const; 54 EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const;
53 }; 55 };
OLDNEW

Powered by Google App Engine
This is Rietveld