OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 } | 224 } |
225 | 225 |
226 // Set up the RenderView child process. Virtual because it is overridden by | 226 // Set up the RenderView child process. Virtual because it is overridden by |
227 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used | 227 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used |
228 // as the name of the new top-level frame. | 228 // as the name of the new top-level frame. |
229 // The |opener_route_id| parameter indicates which RenderView created this | 229 // The |opener_route_id| parameter indicates which RenderView created this |
230 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the | 230 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the |
231 // RenderView is told to start issuing page IDs at |max_page_id| + 1. | 231 // RenderView is told to start issuing page IDs at |max_page_id| + 1. |
232 // |window_was_created_with_opener| is true if this top-level frame was | 232 // |window_was_created_with_opener| is true if this top-level frame was |
233 // created with an opener. (The opener may have been closed since.) | 233 // created with an opener. (The opener may have been closed since.) |
| 234 // The |proxy_route_id| is only used when creating a RenderView in swapped out |
| 235 // state. |
234 virtual bool CreateRenderView(const base::string16& frame_name, | 236 virtual bool CreateRenderView(const base::string16& frame_name, |
235 int opener_route_id, | 237 int opener_route_id, |
| 238 int proxy_route_id, |
236 int32 max_page_id, | 239 int32 max_page_id, |
237 bool window_was_created_with_opener); | 240 bool window_was_created_with_opener); |
238 | 241 |
239 base::TerminationStatus render_view_termination_status() const { | 242 base::TerminationStatus render_view_termination_status() const { |
240 return render_view_termination_status_; | 243 return render_view_termination_status_; |
241 } | 244 } |
242 | 245 |
243 // Returns the content specific prefs for this RenderViewHost. | 246 // Returns the content specific prefs for this RenderViewHost. |
244 WebPreferences GetWebkitPrefs(const GURL& url); | 247 WebPreferences GetWebkitPrefs(const GURL& url); |
245 | 248 |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 648 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
646 }; | 649 }; |
647 | 650 |
648 #if defined(COMPILER_MSVC) | 651 #if defined(COMPILER_MSVC) |
649 #pragma warning(pop) | 652 #pragma warning(pop) |
650 #endif | 653 #endif |
651 | 654 |
652 } // namespace content | 655 } // namespace content |
653 | 656 |
654 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 657 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |