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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 CHECK(d); // http://crbug.com/82827 | 239 CHECK(d); // http://crbug.com/82827 |
240 delegate_ = d; | 240 delegate_ = d; |
241 } | 241 } |
242 | 242 |
243 // Set up the RenderView child process. Virtual because it is overridden by | 243 // Set up the RenderView child process. Virtual because it is overridden by |
244 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used | 244 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used |
245 // as the name of the new top-level frame. | 245 // as the name of the new top-level frame. |
246 // The |opener_route_id| parameter indicates which RenderView created this | 246 // The |opener_route_id| parameter indicates which RenderView created this |
247 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the | 247 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the |
248 // RenderView is told to start issuing page IDs at |max_page_id| + 1. | 248 // RenderView is told to start issuing page IDs at |max_page_id| + 1. |
| 249 // |window_was_created_with_opener| is true if this top-level frame was |
| 250 // created with an opener. (The opener may have been closed since.) |
249 virtual bool CreateRenderView(const base::string16& frame_name, | 251 virtual bool CreateRenderView(const base::string16& frame_name, |
250 int opener_route_id, | 252 int opener_route_id, |
251 int32 max_page_id); | 253 int32 max_page_id, |
| 254 bool window_was_created_with_opener); |
252 | 255 |
253 base::TerminationStatus render_view_termination_status() const { | 256 base::TerminationStatus render_view_termination_status() const { |
254 return render_view_termination_status_; | 257 return render_view_termination_status_; |
255 } | 258 } |
256 | 259 |
257 // Returns the content specific prefs for this RenderViewHost. | 260 // Returns the content specific prefs for this RenderViewHost. |
258 WebPreferences GetWebkitPrefs(const GURL& url); | 261 WebPreferences GetWebkitPrefs(const GURL& url); |
259 | 262 |
260 // Sends the given navigation message. Use this rather than sending it | 263 // Sends the given navigation message. Use this rather than sending it |
261 // yourself since this does the internal bookkeeping described below. This | 264 // yourself since this does the internal bookkeeping described below. This |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 710 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
708 }; | 711 }; |
709 | 712 |
710 #if defined(COMPILER_MSVC) | 713 #if defined(COMPILER_MSVC) |
711 #pragma warning(pop) | 714 #pragma warning(pop) |
712 #endif | 715 #endif |
713 | 716 |
714 } // namespace content | 717 } // namespace content |
715 | 718 |
716 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 719 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |