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