| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 public NotificationObserver { | 85 public NotificationObserver { |
| 86 public: | 86 public: |
| 87 // Returns the RenderViewHost given its ID and the ID of its render process. | 87 // Returns the RenderViewHost given its ID and the ID of its render process. |
| 88 // Returns NULL if the IDs do not correspond to a live RenderViewHost. | 88 // Returns NULL if the IDs do not correspond to a live RenderViewHost. |
| 89 static RenderViewHost* FromID(int render_process_id, int render_view_id); | 89 static RenderViewHost* FromID(int render_process_id, int render_view_id); |
| 90 | 90 |
| 91 // routing_id could be a valid route id, or it could be MSG_ROUTING_NONE, in | 91 // routing_id could be a valid route id, or it could be MSG_ROUTING_NONE, in |
| 92 // which case RenderWidgetHost will create a new one. | 92 // which case RenderWidgetHost will create a new one. |
| 93 RenderViewHost(SiteInstance* instance, | 93 RenderViewHost(SiteInstance* instance, |
| 94 RenderViewHostDelegate* delegate, | 94 RenderViewHostDelegate* delegate, |
| 95 int routing_id); | 95 int routing_id, |
| 96 int64 session_storage_namespace_id); |
| 96 virtual ~RenderViewHost(); | 97 virtual ~RenderViewHost(); |
| 97 | 98 |
| 98 SiteInstance* site_instance() const { return instance_; } | 99 SiteInstance* site_instance() const { return instance_; } |
| 99 RenderViewHostDelegate* delegate() const { return delegate_; } | 100 RenderViewHostDelegate* delegate() const { return delegate_; } |
| 100 | 101 |
| 101 // Set up the RenderView child process. Virtual because it is overridden by | 102 // Set up the RenderView child process. Virtual because it is overridden by |
| 102 // TestRenderViewHost. | 103 // TestRenderViewHost. |
| 103 virtual bool CreateRenderView(URLRequestContextGetter* request_context); | 104 virtual bool CreateRenderView(URLRequestContextGetter* request_context); |
| 104 | 105 |
| 105 // Returns true if the RenderView is active and has not crashed. Virtual | 106 // Returns true if the RenderView is active and has not crashed. Virtual |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 // the case of a cross-site transition ( = true). | 665 // the case of a cross-site transition ( = true). |
| 665 bool unload_ack_is_for_cross_site_transition_; | 666 bool unload_ack_is_for_cross_site_transition_; |
| 666 | 667 |
| 667 bool are_javascript_messages_suppressed_; | 668 bool are_javascript_messages_suppressed_; |
| 668 | 669 |
| 669 // True if the render view can be shut down suddenly. | 670 // True if the render view can be shut down suddenly. |
| 670 bool sudden_termination_allowed_; | 671 bool sudden_termination_allowed_; |
| 671 | 672 |
| 672 NotificationRegistrar registrar_; | 673 NotificationRegistrar registrar_; |
| 673 | 674 |
| 675 // The session storage namespace id to be used by the associated render view. |
| 676 int64 session_storage_namespace_id_; |
| 677 |
| 674 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 678 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 675 }; | 679 }; |
| 676 | 680 |
| 677 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 681 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |