Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1577)

Unified Diff: content/browser/renderer_host/browser_render_process_host.h

Issue 6880320: Move code that talks to spellchecking out of content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/browser_render_process_host.h
===================================================================
--- content/browser/renderer_host/browser_render_process_host.h (revision 83517)
+++ content/browser/renderer_host/browser_render_process_host.h (working copy)
@@ -17,8 +17,6 @@
#include "base/timer.h"
#include "content/browser/child_process_launcher.h"
#include "content/browser/renderer_host/render_process_host.h"
-#include "content/common/notification_observer.h"
-#include "content/common/notification_registrar.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h"
#include "ui/gfx/surface/transport_dib.h"
@@ -45,7 +43,6 @@
// are correlated with IDs. This way, the Views and the corresponding ViewHosts
// communicate through the two process objects.
class BrowserRenderProcessHost : public RenderProcessHost,
- public NotificationObserver,
public ChildProcessLauncher::Client {
public:
explicit BrowserRenderProcessHost(Profile* profile);
@@ -76,11 +73,6 @@
virtual void OnChannelConnected(int32 peer_pid);
virtual void OnChannelError();
- // NotificationObserver implementation.
- virtual void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
-
// ChildProcessLauncher::Client implementation.
virtual void OnProcessLaunched();
@@ -108,23 +100,6 @@
// Callers can reduce the RenderProcess' priority.
void SetBackgrounded(bool backgrounded);
- // The renderer has requested that we initialize its spellchecker. This should
- // generally only be called once per session, as after the first call, all
- // future renderers will be passed the initialization information on startup
- // (or when the dictionary changes in some way).
- void OnSpellCheckerRequestDictionary();
-
- // Tell the renderer of a new word that has been added to the custom
- // dictionary.
- void AddSpellCheckWord(const std::string& word);
-
- // Pass the renderer some basic intialization information. Note that the
- // renderer will not load Hunspell until it needs to.
- void InitSpellChecker();
-
- // Tell the renderer that auto spell correction has been enabled/disabled.
- void EnableAutoSpellCorrect(bool enable);
-
// Initializes client-side phishing detection. Starts reading the phishing
// model from the client-side detection service class. Once the model is read
// OpenPhishingModelDone() is invoked.
@@ -134,8 +109,6 @@
// the model file.
void OpenPhishingModelDone(base::PlatformFile model_file);
- NotificationRegistrar registrar_;
-
// The count of currently visible widgets. Since the host can be a container
// for multiple widgets, it uses this count to determine when it should be
// backgrounded.
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698