This repository has been archived by the owner on Mar 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration of Confirmations into Brave Core
* Resolved cpplint issues * Resolved mock build error * Resolved issue with uninitialized vectors * Resolved issue with last page classification not being retained after browser restart * Improved error handling * various cosmetic edits README - include synopsis of stand-alone build instructions event_type_load.h - include tab classification in structure ads_impl.{h,cc} - - move load event to classifier method to get accurate log entries - add GetRegion method for use with brave-core/ui - more logging in classifier method - make adsPerDay a no-op until design/product decides what to do with that feature - more logging for onTimer to see why it fires bundle.cc - fix hierarchy typo mock_ads_client.cc - s/result/status to avoid double definition issue note that client_->GetLastPageClassification is no longer needed * Fixed cpplint issues * Exposed GetRegion * Integration of Confirmations with brave-core
- Loading branch information
Showing
43 changed files
with
652 additions
and
231 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,7 @@ message(STATUS "URI Parser dependency") | |
FetchContent_Declare( | ||
URIParserProject | ||
GIT_REPOSITORY [email protected]:uriparser/uriparser.git | ||
GIT_TAG master | ||
GIT_TAG uriparser-0.9.0 | ||
) | ||
|
||
FetchContent_GetProperties(URIParserProject) | ||
|
@@ -92,6 +92,8 @@ message(STATUS "BAT Native Ads") | |
set(SOURCES | ||
"${PROJECT_SOURCE_DIR}/src/bat/ads/ad_info.cc" | ||
"${PROJECT_SOURCE_DIR}/src/bat/ads/client_info.cc" | ||
"${PROJECT_SOURCE_DIR}/src/bat/ads/issuer_info.cc" | ||
"${PROJECT_SOURCE_DIR}/src/bat/ads/issuers_info.cc" | ||
"${PROJECT_SOURCE_DIR}/src/bat/ads/notification_info.cc" | ||
"${PROJECT_SOURCE_DIR}/src/bat/ads/url_components.cc" | ||
"${PROJECT_SOURCE_DIR}/src/ads.cc" | ||
|
@@ -105,6 +107,7 @@ set(SOURCES | |
"${PROJECT_SOURCE_DIR}/src/client_state.cc" | ||
"${PROJECT_SOURCE_DIR}/src/json_helper.cc" | ||
"${PROJECT_SOURCE_DIR}/src/math_helper.cc" | ||
"${PROJECT_SOURCE_DIR}/src/error_helper.cc" | ||
"${PROJECT_SOURCE_DIR}/src/locale_helper.cc" | ||
"${PROJECT_SOURCE_DIR}/src/search_providers.cc" | ||
"${PROJECT_SOURCE_DIR}/src/string_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
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
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
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,33 @@ | ||
/* 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 BAT_ADS_ISSUERS_INFO_H_ | ||
#define BAT_ADS_ISSUERS_INFO_H_ | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
#include "bat/ads/export.h" | ||
#include "bat/ads/issuer_info.h" | ||
#include "bat/ads/result.h" | ||
|
||
namespace ads { | ||
|
||
struct ADS_EXPORT IssuersInfo { | ||
IssuersInfo(); | ||
IssuersInfo(const IssuersInfo& info); | ||
~IssuersInfo(); | ||
|
||
const std::string ToJson() const; | ||
Result FromJson( | ||
const std::string& json, | ||
std::string* error_description = nullptr); | ||
|
||
std::string public_key; | ||
std::vector<IssuerInfo> issuers; | ||
}; | ||
|
||
} // namespace ads | ||
|
||
#endif // BAT_ADS_ISSUERS_INFO_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
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,19 @@ | ||
/* 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 BAT_ADS_RESULT_H_ | ||
#define BAT_ADS_RESULT_H_ | ||
|
||
#include "bat/ads/export.h" | ||
|
||
namespace ads { | ||
|
||
enum ADS_EXPORT Result { | ||
SUCCESS, | ||
FAILED | ||
}; | ||
|
||
} // namespace ads | ||
|
||
#endif // BAT_ADS_RESULT_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
Oops, something went wrong.