#include "extensions/renderer/user_script_set_manager.h"
#include "base/observer_list.h"
#include "components/crx_file/id_util.h"
#include "content/public/renderer/render_thread.h"
#include "extensions/common/extension_id.h"
#include "extensions/common/mojom/host_id.mojom.h"
#include "extensions/renderer/dispatcher.h"
#include "extensions/renderer/script_injection.h"
#include "extensions/renderer/user_script_set.h"
namespace extensions {
UserScriptSetManager::UserScriptSetManager()
: … { … }
UserScriptSetManager::~UserScriptSetManager() { … }
void UserScriptSetManager::AddObserver(Observer* observer) { … }
void UserScriptSetManager::RemoveObserver(Observer* observer) { … }
std::unique_ptr<ScriptInjection>
UserScriptSetManager::GetInjectionForDeclarativeScript(
const std::string& script_id,
content::RenderFrame* render_frame,
int tab_id,
const GURL& url,
const ExtensionId& extension_id) { … }
void UserScriptSetManager::GetAllInjections(
std::vector<std::unique_ptr<ScriptInjection>>* injections,
content::RenderFrame* render_frame,
int tab_id,
mojom::RunLocation run_location) { … }
void UserScriptSetManager::GetAllActiveExtensionIds(
std::set<ExtensionId>* ids) const { … }
UserScriptSet* UserScriptSetManager::GetScriptsByHostID(
const mojom::HostID& host_id) { … }
void UserScriptSetManager::OnUpdateUserScripts(
base::ReadOnlySharedMemoryRegion shared_memory,
const mojom::HostID& host_id) { … }
void UserScriptSetManager::OnExtensionUnloaded(
const ExtensionId& extension_id) { … }
}