| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 IPC::Message* msg) = 0; | 137 IPC::Message* msg) = 0; |
| 138 | 138 |
| 139 // Called when a received message cannot be decoded. | 139 // Called when a received message cannot be decoded. |
| 140 virtual void ReceivedBadMessage(uint16 msg_type) = 0; | 140 virtual void ReceivedBadMessage(uint16 msg_type) = 0; |
| 141 | 141 |
| 142 // Track the count of visible widgets. Called by listeners to register and | 142 // Track the count of visible widgets. Called by listeners to register and |
| 143 // unregister visibility. | 143 // unregister visibility. |
| 144 virtual void WidgetRestored() = 0; | 144 virtual void WidgetRestored() = 0; |
| 145 virtual void WidgetHidden() = 0; | 145 virtual void WidgetHidden() = 0; |
| 146 | 146 |
| 147 // Called when RenderView is created by a listener. |
| 148 virtual void ViewCreated() = 0; |
| 149 |
| 147 // Add a word in the spellchecker. | 150 // Add a word in the spellchecker. |
| 148 virtual void AddWord(const std::wstring& word) = 0; | 151 virtual void AddWord(const std::wstring& word) = 0; |
| 149 | 152 |
| 150 // Notify the renderer that a link was visited. | 153 // Notify the renderer that a link was visited. |
| 151 virtual void AddVisitedLinks( | 154 virtual void AddVisitedLinks( |
| 152 const VisitedLinkCommon::Fingerprints& links) = 0; | 155 const VisitedLinkCommon::Fingerprints& links) = 0; |
| 153 | 156 |
| 154 // Clear internal visited links buffer and ask the renderer to update link | 157 // Clear internal visited links buffer and ask the renderer to update link |
| 155 // coloring state for all of its links. | 158 // coloring state for all of its links. |
| 156 virtual void ResetVisitedLinks() = 0; | 159 virtual void ResetVisitedLinks() = 0; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // Factory object for RenderProcessHosts. Using this factory allows tests to | 265 // Factory object for RenderProcessHosts. Using this factory allows tests to |
| 263 // swap out a different one to use a TestRenderProcessHost. | 266 // swap out a different one to use a TestRenderProcessHost. |
| 264 class RenderProcessHostFactory { | 267 class RenderProcessHostFactory { |
| 265 public: | 268 public: |
| 266 virtual ~RenderProcessHostFactory() {} | 269 virtual ~RenderProcessHostFactory() {} |
| 267 virtual RenderProcessHost* CreateRenderProcessHost( | 270 virtual RenderProcessHost* CreateRenderProcessHost( |
| 268 Profile* profile) const = 0; | 271 Profile* profile) const = 0; |
| 269 }; | 272 }; |
| 270 | 273 |
| 271 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 274 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |