summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellchecker/spellcheck_profile_provider.h
diff options
context:
space:
mode:
authormorrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-24 05:08:10 +0000
committermorrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-24 05:08:10 +0000
commitae428afa0b4956151d38ac88d3311c36a825e88f (patch)
tree9ab2f474971df06485369eaf2fb986d71e823a5b /chrome/browser/spellchecker/spellcheck_profile_provider.h
parent5c68d695f520f4f393ba6a9380dd4f7a4f8280c2 (diff)
downloadchromium_src-ae428afa0b4956151d38ac88d3311c36a825e88f.zip
chromium_src-ae428afa0b4956151d38ac88d3311c36a825e88f.tar.gz
chromium_src-ae428afa0b4956151d38ac88d3311c36a825e88f.tar.bz2
Renamed SpellCheckHostObserver to SpellCheckProfileProvider
since it provides an accessor and no longer simple observer. TEST=none BUG=none Review URL: http://codereview.chromium.org/7712023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97992 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker/spellcheck_profile_provider.h')
-rw-r--r--chrome/browser/spellchecker/spellcheck_profile_provider.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/chrome/browser/spellchecker/spellcheck_profile_provider.h b/chrome/browser/spellchecker/spellcheck_profile_provider.h
new file mode 100644
index 0000000..9376982
--- /dev/null
+++ b/chrome/browser/spellchecker/spellcheck_profile_provider.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_PROVIDER_H_
+#define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_PROVIDER_H_
+#pragma once
+
+#include <string>
+#include <vector>
+
+// A user profile provider and state notification receiver for the
+// SpellCheckHost.
+class SpellCheckProfileProvider {
+ public:
+ typedef std::vector<std::string> CustomWordList;
+
+ // Invoked on the UI thread when SpellCheckHost is initialized.
+ virtual void SpellCheckHostInitialized(
+ CustomWordList* custom_words) = 0;
+
+ // Returns in-memory cache of custom word list.
+ virtual const CustomWordList& GetCustomWords() const = 0;
+
+ // Invoked on the Ui thread when new custom word is registered.
+ virtual void CustomWordAddedLocally(const std::string& word) = 0;
+
+ protected:
+ virtual ~SpellCheckProfileProvider() {}
+};
+
+#endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_PROVIDER_H_