diff options
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete.cc')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete.cc | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/chrome/browser/autocomplete/autocomplete.cc b/chrome/browser/autocomplete/autocomplete.cc index a8a9e4e..d24e209 100644 --- a/chrome/browser/autocomplete/autocomplete.cc +++ b/chrome/browser/autocomplete/autocomplete.cc @@ -36,6 +36,13 @@ using base::TimeDelta; // AutocompleteInput ---------------------------------------------------------- +AutocompleteInput::AutocompleteInput() + : type_(INVALID), + prevent_inline_autocomplete_(false), + prefer_keyword_(false), + synchronous_only_(false) { +} + AutocompleteInput::AutocompleteInput(const std::wstring& text, const std::wstring& desired_tld, bool prevent_inline_autocomplete, @@ -68,6 +75,9 @@ AutocompleteInput::AutocompleteInput(const std::wstring& text, text_.erase(0, 1); } +AutocompleteInput::~AutocompleteInput() { +} + // static std::string AutocompleteInput::TypeToString(Type type) { switch (type) { @@ -407,6 +417,9 @@ AutocompleteMatch::AutocompleteMatch(AutocompleteProvider* provider, starred(false) { } +AutocompleteMatch::~AutocompleteMatch() { +} + // static std::string AutocompleteMatch::TypeToString(Type type) { const char* strings[NUM_TYPES] = { @@ -561,8 +574,16 @@ void AutocompleteMatch::ValidateClassifications( // static const size_t AutocompleteProvider::kMaxMatches = 3; -AutocompleteProvider::~AutocompleteProvider() { - Stop(); +AutocompleteProvider::ACProviderListener::~ACProviderListener() { +} + +AutocompleteProvider::AutocompleteProvider(ACProviderListener* listener, + Profile* profile, + const char* name) + : profile_(profile), + listener_(listener), + done_(true), + name_(name) { } void AutocompleteProvider::SetProfile(Profile* profile) { @@ -571,6 +592,17 @@ void AutocompleteProvider::SetProfile(Profile* profile) { profile_ = profile; } +void AutocompleteProvider::Stop() { + done_ = true; +} + +void AutocompleteProvider::DeleteMatch(const AutocompleteMatch& match) { +} + +AutocompleteProvider::~AutocompleteProvider() { + Stop(); +} + // static bool AutocompleteProvider::HasHTTPScheme(const std::wstring& input) { std::string utf8_input(WideToUTF8(input)); |