| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 | 105 |
| 106 // Allows overriding the type of this tab. | 106 // Allows overriding the type of this tab. |
| 107 void set_view_type(content::ViewType type) { view_type_ = type; } | 107 void set_view_type(content::ViewType type) { view_type_ = type; } |
| 108 | 108 |
| 109 // Returns the SavePackage which manages the page saving job. May be NULL. | 109 // Returns the SavePackage which manages the page saving job. May be NULL. |
| 110 SavePackage* save_package() const { return save_package_.get(); } | 110 SavePackage* save_package() const { return save_package_.get(); } |
| 111 | 111 |
| 112 // Return the currently active RenderProcessHost and RenderViewHost. Each of | 112 // Return the currently active RenderProcessHost and RenderViewHost. Each of |
| 113 // these may change over time. | 113 // these may change over time. |
| 114 RenderProcessHost* GetRenderProcessHost() const; | 114 content::RenderProcessHost* GetRenderProcessHost() const; |
| 115 RenderViewHost* render_view_host() const { | 115 RenderViewHost* render_view_host() const { |
| 116 return render_manager_.current_host(); | 116 return render_manager_.current_host(); |
| 117 } | 117 } |
| 118 | 118 |
| 119 WebUI* committed_web_ui() const { | 119 WebUI* committed_web_ui() const { |
| 120 return render_manager_.web_ui(); | 120 return render_manager_.web_ui(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 // Returns the committed WebUI if one exists, otherwise the pending one. | 123 // Returns the committed WebUI if one exists, otherwise the pending one. |
| 124 // Callers who want to use the pending WebUI for the pending navigation entry | 124 // Callers who want to use the pending WebUI for the pending navigation entry |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 // (full-page plugins for now only) permissions. | 871 // (full-page plugins for now only) permissions. |
| 872 int content_restrictions_; | 872 int content_restrictions_; |
| 873 | 873 |
| 874 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. | 874 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. |
| 875 content::ViewType view_type_; | 875 content::ViewType view_type_; |
| 876 | 876 |
| 877 DISALLOW_COPY_AND_ASSIGN(TabContents); | 877 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 878 }; | 878 }; |
| 879 | 879 |
| 880 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 880 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |