| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 IPC::Message* msg) = 0; | 130 IPC::Message* msg) = 0; |
| 131 | 131 |
| 132 // Called when a received message cannot be decoded. | 132 // Called when a received message cannot be decoded. |
| 133 virtual void ReceivedBadMessage(uint16 msg_type) = 0; | 133 virtual void ReceivedBadMessage(uint16 msg_type) = 0; |
| 134 | 134 |
| 135 // Track the count of visible widgets. Called by listeners to register and | 135 // Track the count of visible widgets. Called by listeners to register and |
| 136 // unregister visibility. | 136 // unregister visibility. |
| 137 virtual void WidgetRestored() = 0; | 137 virtual void WidgetRestored() = 0; |
| 138 virtual void WidgetHidden() = 0; | 138 virtual void WidgetHidden() = 0; |
| 139 | 139 |
| 140 // Called when RenderView is created by a listener. |
| 141 virtual void ViewCreated() = 0; |
| 142 |
| 140 // Add a word in the spellchecker. | 143 // Add a word in the spellchecker. |
| 141 virtual void AddWord(const std::wstring& word) = 0; | 144 virtual void AddWord(const std::wstring& word) = 0; |
| 142 | 145 |
| 143 // Notify the renderer that a link was visited. | 146 // Notify the renderer that a link was visited. |
| 144 virtual void AddVisitedLinks( | 147 virtual void AddVisitedLinks( |
| 145 const VisitedLinkCommon::Fingerprints& links) = 0; | 148 const VisitedLinkCommon::Fingerprints& links) = 0; |
| 146 | 149 |
| 147 // Clear internal visited links buffer and ask the renderer to update link | 150 // Clear internal visited links buffer and ask the renderer to update link |
| 148 // coloring state for all of its links. | 151 // coloring state for all of its links. |
| 149 virtual void ResetVisitedLinks() = 0; | 152 virtual void ResetVisitedLinks() = 0; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // Factory object for RenderProcessHosts. Using this factory allows tests to | 254 // Factory object for RenderProcessHosts. Using this factory allows tests to |
| 252 // swap out a different one to use a TestRenderProcessHost. | 255 // swap out a different one to use a TestRenderProcessHost. |
| 253 class RenderProcessHostFactory { | 256 class RenderProcessHostFactory { |
| 254 public: | 257 public: |
| 255 virtual ~RenderProcessHostFactory() {} | 258 virtual ~RenderProcessHostFactory() {} |
| 256 virtual RenderProcessHost* CreateRenderProcessHost( | 259 virtual RenderProcessHost* CreateRenderProcessHost( |
| 257 Profile* profile) const = 0; | 260 Profile* profile) const = 0; |
| 258 }; | 261 }; |
| 259 | 262 |
| 260 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ | 263 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_H_ |
| OLD | NEW |