| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 int routing_id, | 101 int routing_id, |
| 102 int64 session_storage_namespace_id); | 102 int64 session_storage_namespace_id); |
| 103 virtual ~RenderViewHost(); | 103 virtual ~RenderViewHost(); |
| 104 | 104 |
| 105 SiteInstance* site_instance() const { return instance_; } | 105 SiteInstance* site_instance() const { return instance_; } |
| 106 RenderViewHostDelegate* delegate() const { return delegate_; } | 106 RenderViewHostDelegate* delegate() const { return delegate_; } |
| 107 | 107 |
| 108 // Set up the RenderView child process. Virtual because it is overridden by | 108 // Set up the RenderView child process. Virtual because it is overridden by |
| 109 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used | 109 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used |
| 110 // as the name of the new top-level frame. | 110 // as the name of the new top-level frame. |
| 111 virtual bool CreateRenderView(URLRequestContextGetter* request_context, | 111 virtual bool CreateRenderView(const string16& frame_name); |
| 112 const string16& frame_name); | |
| 113 | 112 |
| 114 // Returns true if the RenderView is active and has not crashed. Virtual | 113 // Returns true if the RenderView is active and has not crashed. Virtual |
| 115 // because it is overridden by TestRenderViewHost. | 114 // because it is overridden by TestRenderViewHost. |
| 116 virtual bool IsRenderViewLive() const; | 115 virtual bool IsRenderViewLive() const; |
| 117 | 116 |
| 118 // Send the renderer process the current preferences supplied by the | 117 // Send the renderer process the current preferences supplied by the |
| 119 // RenderViewHostDelegate. | 118 // RenderViewHostDelegate. |
| 120 void SyncRendererPrefs(); | 119 void SyncRendererPrefs(); |
| 121 | 120 |
| 122 // Sends the given navigation message. Use this rather than sending it | 121 // Sends the given navigation message. Use this rather than sending it |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 729 int autofill_query_id_; | 728 int autofill_query_id_; |
| 730 std::vector<string16> autofill_values_; | 729 std::vector<string16> autofill_values_; |
| 731 std::vector<string16> autofill_labels_; | 730 std::vector<string16> autofill_labels_; |
| 732 std::vector<string16> autofill_icons_; | 731 std::vector<string16> autofill_icons_; |
| 733 std::vector<int> autofill_unique_ids_; | 732 std::vector<int> autofill_unique_ids_; |
| 734 | 733 |
| 735 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 734 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 736 }; | 735 }; |
| 737 | 736 |
| 738 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 737 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |