-
Notifications
You must be signed in to change notification settings - Fork 726
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTPDownloader: Move to util project
- Loading branch information
Showing
16 changed files
with
108 additions
and
107 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
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <[email protected]> | ||
// SPDX-FileCopyrightText: 2019-2023 Connor McLaughlin <[email protected]> | ||
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0) | ||
|
||
#include "http_downloader.h" | ||
#include "assert.h" | ||
#include "log.h" | ||
#include "string_util.h" | ||
#include "timer.h" | ||
|
||
#include "common/assert.h" | ||
#include "common/log.h" | ||
#include "common/string_util.h" | ||
#include "common/timer.h" | ||
|
||
Log_SetChannel(HTTPDownloader); | ||
|
||
static constexpr float DEFAULT_TIMEOUT_IN_SECONDS = 30; | ||
static constexpr u32 DEFAULT_MAX_ACTIVE_REQUESTS = 4; | ||
|
||
namespace Common { | ||
|
||
const char HTTPDownloader::DEFAULT_USER_AGENT[] = | ||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0"; | ||
|
||
|
@@ -355,5 +355,3 @@ std::string HTTPDownloader::GetExtensionForContentType(const std::string& conten | |
} | ||
return ret; | ||
} | ||
|
||
} // namespace Common |
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <[email protected]> | ||
// SPDX-FileCopyrightText: 2019-2023 Connor McLaughlin <[email protected]> | ||
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0) | ||
|
||
#pragma once | ||
|
||
#include "common/types.h" | ||
|
||
#include <atomic> | ||
#include <functional> | ||
#include <memory> | ||
|
@@ -11,8 +13,6 @@ | |
#include <string_view> | ||
#include <vector> | ||
|
||
namespace Common { | ||
|
||
class HTTPDownloader | ||
{ | ||
public: | ||
|
@@ -94,5 +94,3 @@ class HTTPDownloader | |
std::mutex m_pending_http_request_lock; | ||
std::vector<Request*> m_pending_http_requests; | ||
}; | ||
|
||
} // namespace FrontendCommon |
Oops, something went wrong.