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_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 RenderViewHostDelegate* delegate() const { return delegate_; } | 96 RenderViewHostDelegate* delegate() const { return delegate_; } |
97 | 97 |
98 // Set up the RenderView child process. Virtual because it is overridden by | 98 // Set up the RenderView child process. Virtual because it is overridden by |
99 // TestRenderViewHost. | 99 // TestRenderViewHost. |
100 virtual bool CreateRenderView(); | 100 virtual bool CreateRenderView(); |
101 | 101 |
102 // Returns true if the RenderView is active and has not crashed. Virtual | 102 // Returns true if the RenderView is active and has not crashed. Virtual |
103 // because it is overridden by TestRenderViewHost. | 103 // because it is overridden by TestRenderViewHost. |
104 virtual bool IsRenderViewLive() const; | 104 virtual bool IsRenderViewLive() const; |
105 | 105 |
106 void SetRendererPrefs(const RendererPreferences& renderer_prefs); | 106 // Send the renderer process the current preferences supplied by the |
| 107 // RenderViewHostDelegate. |
| 108 void SyncRendererPrefs(); |
107 | 109 |
108 // Sends the given navigation message. Use this rather than sending it | 110 // Sends the given navigation message. Use this rather than sending it |
109 // yourself since this does the internal bookkeeping described below. This | 111 // yourself since this does the internal bookkeeping described below. This |
110 // function takes ownership of the provided message pointer. | 112 // function takes ownership of the provided message pointer. |
111 // | 113 // |
112 // If a cross-site request is in progress, we may be suspended while waiting | 114 // If a cross-site request is in progress, we may be suspended while waiting |
113 // for the onbeforeunload handler, so this function might buffer the message | 115 // for the onbeforeunload handler, so this function might buffer the message |
114 // rather than sending it. | 116 // rather than sending it. |
115 void Navigate(const ViewMsg_Navigate_Params& message); | 117 void Navigate(const ViewMsg_Navigate_Params& message); |
116 | 118 |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 // While in this mode, mouse click is converted into InspectElement | 629 // While in this mode, mouse click is converted into InspectElement |
628 // command. | 630 // command. |
629 bool in_inspect_element_mode_; | 631 bool in_inspect_element_mode_; |
630 | 632 |
631 NotificationRegistrar registrar_; | 633 NotificationRegistrar registrar_; |
632 | 634 |
633 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 635 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
634 }; | 636 }; |
635 | 637 |
636 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 638 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |