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