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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 CHECK(d); // http://crbug.com/82827 | 233 CHECK(d); // http://crbug.com/82827 |
234 delegate_ = d; | 234 delegate_ = d; |
235 } | 235 } |
236 | 236 |
237 // Set up the RenderView child process. Virtual because it is overridden by | 237 // Set up the RenderView child process. Virtual because it is overridden by |
238 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used | 238 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used |
239 // as the name of the new top-level frame. | 239 // as the name of the new top-level frame. |
240 // The |opener_route_id| parameter indicates which RenderView created this | 240 // The |opener_route_id| parameter indicates which RenderView created this |
241 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the | 241 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the |
242 // RenderView is told to start issuing page IDs at |max_page_id| + 1. | 242 // RenderView is told to start issuing page IDs at |max_page_id| + 1. |
| 243 // |window_was_created_with_opener| is true if this top-level frame was |
| 244 // created with an opener. (The opener may have been closed since.) |
243 virtual bool CreateRenderView(const base::string16& frame_name, | 245 virtual bool CreateRenderView(const base::string16& frame_name, |
244 int opener_route_id, | 246 int opener_route_id, |
245 int32 max_page_id); | 247 int32 max_page_id, |
| 248 bool window_was_created_with_opener); |
246 | 249 |
247 base::TerminationStatus render_view_termination_status() const { | 250 base::TerminationStatus render_view_termination_status() const { |
248 return render_view_termination_status_; | 251 return render_view_termination_status_; |
249 } | 252 } |
250 | 253 |
251 // Returns the content specific prefs for this RenderViewHost. | 254 // Returns the content specific prefs for this RenderViewHost. |
252 WebPreferences GetWebkitPrefs(const GURL& url); | 255 WebPreferences GetWebkitPrefs(const GURL& url); |
253 | 256 |
254 // Sends the given navigation message. Use this rather than sending it | 257 // Sends the given navigation message. Use this rather than sending it |
255 // yourself since this does the internal bookkeeping described below. This | 258 // yourself since this does the internal bookkeeping described below. This |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 683 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
681 }; | 684 }; |
682 | 685 |
683 #if defined(COMPILER_MSVC) | 686 #if defined(COMPILER_MSVC) |
684 #pragma warning(pop) | 687 #pragma warning(pop) |
685 #endif | 688 #endif |
686 | 689 |
687 } // namespace content | 690 } // namespace content |
688 | 691 |
689 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 692 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |