-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves brave/brave-browser#4005
- Loading branch information
Showing
9 changed files
with
148 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
vendor/bat-native-ledger/src/bat/ledger/internal/media/helper.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#include "bat/ledger/internal/media/helper.h" | ||
|
||
|
||
namespace braveledger_media { | ||
|
||
|
||
} // namespace braveledger_media |
15 changes: 15 additions & 0 deletions
15
vendor/bat-native-ledger/src/bat/ledger/internal/media/helper.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BRAVELEDGER_MEDIA_HELPER_H_ | ||
#define BRAVELEDGER_MEDIA_HELPER_H_ | ||
|
||
namespace braveledger_media { | ||
|
||
|
||
|
||
} // namespace braveledger_media | ||
|
||
#endif // BRAVELEDGER_MEDIA_HELPER_H_ |
22 changes: 22 additions & 0 deletions
22
vendor/bat-native-ledger/src/bat/ledger/internal/media/twitch.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#include "bat/ledger/internal/ledger_impl.h" | ||
#include "bat/ledger/internal/media/twitch.h" | ||
|
||
using std::placeholders::_1; | ||
using std::placeholders::_2; | ||
|
||
namespace braveledger_media { | ||
|
||
MediaTwitch::MediaTwitch(bat_ledger::LedgerImpl* ledger): | ||
ledger_(ledger) { | ||
} | ||
|
||
MediaTwitch::~MediaTwitch() { | ||
} | ||
|
||
|
||
} // namespace braveledger_media |
29 changes: 29 additions & 0 deletions
29
vendor/bat-native-ledger/src/bat/ledger/internal/media/twitch.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BRAVELEDGER_MEDIA_TWITCH_H_ | ||
#define BRAVELEDGER_MEDIA_TWITCH_H_ | ||
|
||
#include "bat/ledger/ledger.h" | ||
|
||
namespace bat_ledger { | ||
class LedgerImpl; | ||
} | ||
|
||
namespace braveledger_media { | ||
|
||
class MediaTwitch : public ledger::LedgerCallbackHandler { | ||
public: | ||
explicit MediaTwitch(bat_ledger::LedgerImpl* ledger); | ||
|
||
~MediaTwitch() override; | ||
|
||
private: | ||
bat_ledger::LedgerImpl* ledger_; // NOT OWNED | ||
}; | ||
|
||
} // namespace braveledger_media | ||
|
||
#endif // BRAVELEDGER_MEDIA_TWITCH_H_ |
22 changes: 22 additions & 0 deletions
22
vendor/bat-native-ledger/src/bat/ledger/internal/media/youtube.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#include "bat/ledger/internal/ledger_impl.h" | ||
#include "bat/ledger/internal/media/youtube.h" | ||
|
||
using std::placeholders::_1; | ||
using std::placeholders::_2; | ||
|
||
namespace braveledger_media { | ||
|
||
MediaYouTube::MediaYouTube(bat_ledger::LedgerImpl* ledger): | ||
ledger_(ledger) { | ||
} | ||
|
||
MediaYouTube::~MediaYouTube() { | ||
} | ||
|
||
|
||
} // namespace braveledger_media |
29 changes: 29 additions & 0 deletions
29
vendor/bat-native-ledger/src/bat/ledger/internal/media/youtube.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BRAVELEDGER_MEDIA_YOUTUBE_H_ | ||
#define BRAVELEDGER_MEDIA_YOUTUBE_H_ | ||
|
||
#include "bat/ledger/ledger.h" | ||
|
||
namespace bat_ledger { | ||
class LedgerImpl; | ||
} | ||
|
||
namespace braveledger_media { | ||
|
||
class MediaYouTube : public ledger::LedgerCallbackHandler { | ||
public: | ||
explicit MediaYouTube(bat_ledger::LedgerImpl* ledger); | ||
|
||
~MediaYouTube() override; | ||
|
||
private: | ||
bat_ledger::LedgerImpl* ledger_; // NOT OWNED | ||
}; | ||
|
||
} // namespace braveledger_media | ||
|
||
#endif // BRAVELEDGER_MEDIA_YOUTUBE_H_ |