#include "chrome/browser/ui/search_engines/keyword_editor_controller.h"
#include "base/feature_list.h"
#include "base/metrics/user_metrics.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/browser/ui/search_engines/template_url_table_model.h"
#include "components/omnibox/common/omnibox_features.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_data.h"
#include "components/search_engines/template_url_service.h"
UserMetricsAction;
KeywordEditorController::KeywordEditorController(Profile* profile)
: … { … }
KeywordEditorController::~KeywordEditorController() { … }
int KeywordEditorController::AddTemplateURL(const std::u16string& title,
const std::u16string& keyword,
const std::string& url) { … }
void KeywordEditorController::ModifyTemplateURL(TemplateURL* template_url,
const std::u16string& title,
const std::u16string& keyword,
const std::string& url) { … }
bool KeywordEditorController::CanEdit(const TemplateURL* url) const { … }
bool KeywordEditorController::CanMakeDefault(const TemplateURL* url) const { … }
bool KeywordEditorController::CanRemove(const TemplateURL* url) const { … }
bool KeywordEditorController::CanActivate(const TemplateURL* url) const { … }
bool KeywordEditorController::CanDeactivate(const TemplateURL* url) const { … }
bool KeywordEditorController::ShouldConfirmDeletion(
const TemplateURL* url) const { … }
bool KeywordEditorController::IsManaged(const TemplateURL* url) const { … }
void KeywordEditorController::RemoveTemplateURL(int index) { … }
const TemplateURL* KeywordEditorController::GetDefaultSearchProvider() { … }
void KeywordEditorController::MakeDefaultTemplateURL(
int index,
search_engines::ChoiceMadeLocation choice_location) { … }
void KeywordEditorController::SetIsActiveTemplateURL(int index,
bool is_active) { … }
bool KeywordEditorController::loaded() const { … }
TemplateURL* KeywordEditorController::GetTemplateURL(int index) { … }