| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 virtual void ReceivedBadMessage(uint16 msg_type) = 0; | 166 virtual void ReceivedBadMessage(uint16 msg_type) = 0; |
| 167 | 167 |
| 168 // Track the count of visible widgets. Called by listeners to register and | 168 // Track the count of visible widgets. Called by listeners to register and |
| 169 // unregister visibility. | 169 // unregister visibility. |
| 170 virtual void WidgetRestored() = 0; | 170 virtual void WidgetRestored() = 0; |
| 171 virtual void WidgetHidden() = 0; | 171 virtual void WidgetHidden() = 0; |
| 172 | 172 |
| 173 // Called when RenderView is created by a listener. | 173 // Called when RenderView is created by a listener. |
| 174 virtual void ViewCreated() = 0; | 174 virtual void ViewCreated() = 0; |
| 175 | 175 |
| 176 // Add a word in the spellchecker. | |
| 177 virtual void AddWord(const string16& word) = 0; | |
| 178 | |
| 179 // Informs the renderer about a new visited link table. | 176 // Informs the renderer about a new visited link table. |
| 180 virtual void SendVisitedLinkTable(base::SharedMemory* table_memory) = 0; | 177 virtual void SendVisitedLinkTable(base::SharedMemory* table_memory) = 0; |
| 181 | 178 |
| 182 // Notify the renderer that a link was visited. | 179 // Notify the renderer that a link was visited. |
| 183 virtual void AddVisitedLinks( | 180 virtual void AddVisitedLinks( |
| 184 const VisitedLinkCommon::Fingerprints& links) = 0; | 181 const VisitedLinkCommon::Fingerprints& links) = 0; |
| 185 | 182 |
| 186 // Clear internal visited links buffer and ask the renderer to update link | 183 // Clear internal visited links buffer and ask the renderer to update link |
| 187 // coloring state for all of its links. | 184 // coloring state for all of its links. |
| 188 virtual void ResetVisitedLinks() = 0; | 185 virtual void ResetVisitedLinks() = 0; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 // Factory object for RenderProcessHosts. Using this factory allows tests to | 293 // Factory object for RenderProcessHosts. Using this factory allows tests to |
| 297 // swap out a different one to use a TestRenderProcessHost. | 294 // swap out a different one to use a TestRenderProcessHost. |
| 298 class RenderProcessHostFactory { | 295 class RenderProcessHostFactory { |
| 299 public: | 296 public: |
| 300 virtual ~RenderProcessHostFactory() {} | 297 virtual ~RenderProcessHostFactory() {} |
| 301 virtual RenderProcessHost* CreateRenderProcessHost( | 298 virtual RenderProcessHost* CreateRenderProcessHost( |
| 302 Profile* profile) const = 0; | 299 Profile* profile) const = 0; |
| 303 }; | 300 }; |
| 304 | 301 |
| 305 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 302 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |