| 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_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 virtual RendererPreferences GetRendererPrefs() const; | 887 virtual RendererPreferences GetRendererPrefs() const; |
| 888 virtual WebPreferences GetWebkitPrefs(); | 888 virtual WebPreferences GetWebkitPrefs(); |
| 889 virtual void OnJSOutOfMemory(); | 889 virtual void OnJSOutOfMemory(); |
| 890 virtual void OnCrossSiteResponse(int new_render_process_host_id, | 890 virtual void OnCrossSiteResponse(int new_render_process_host_id, |
| 891 int new_request_id); | 891 int new_request_id); |
| 892 virtual bool CanBlur() const; | 892 virtual bool CanBlur() const; |
| 893 virtual gfx::Rect GetRootWindowResizerRect() const; | 893 virtual gfx::Rect GetRootWindowResizerRect() const; |
| 894 virtual void RendererUnresponsive(RenderViewHost* render_view_host, | 894 virtual void RendererUnresponsive(RenderViewHost* render_view_host, |
| 895 bool is_during_unload); | 895 bool is_during_unload); |
| 896 virtual void RendererResponsive(RenderViewHost* render_view_host); | 896 virtual void RendererResponsive(RenderViewHost* render_view_host); |
| 897 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state); | 897 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state, |
| 898 uint64 upload_position, uint64 upload_size); |
| 898 virtual bool IsExternalTabContainer() const; | 899 virtual bool IsExternalTabContainer() const; |
| 899 virtual void DidInsertCSS(); | 900 virtual void DidInsertCSS(); |
| 900 virtual void FocusedNodeChanged(); | 901 virtual void FocusedNodeChanged(); |
| 901 | 902 |
| 902 // SelectFileDialog::Listener ------------------------------------------------ | 903 // SelectFileDialog::Listener ------------------------------------------------ |
| 903 | 904 |
| 904 virtual void FileSelected(const FilePath& path, int index, void* params); | 905 virtual void FileSelected(const FilePath& path, int index, void* params); |
| 905 virtual void MultiFilesSelected(const std::vector<FilePath>& files, | 906 virtual void MultiFilesSelected(const std::vector<FilePath>& files, |
| 906 void* params); | 907 void* params); |
| 907 virtual void FileSelectionCanceled(void* params); | 908 virtual void FileSelectionCanceled(void* params); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 // each SiteInstance. | 1014 // each SiteInstance. |
| 1014 // TODO(brettw) this seems like it can be removed according to the comment. | 1015 // TODO(brettw) this seems like it can be removed according to the comment. |
| 1015 int32 max_page_id_; | 1016 int32 max_page_id_; |
| 1016 | 1017 |
| 1017 // System time at which the current load was started. | 1018 // System time at which the current load was started. |
| 1018 base::TimeTicks current_load_start_; | 1019 base::TimeTicks current_load_start_; |
| 1019 | 1020 |
| 1020 // The current load state and the URL associated with it. | 1021 // The current load state and the URL associated with it. |
| 1021 net::LoadState load_state_; | 1022 net::LoadState load_state_; |
| 1022 std::wstring load_state_host_; | 1023 std::wstring load_state_host_; |
| 1024 // Upload progress, for displaying in the status bar. |
| 1025 // Set to zero when there is no significant upload happening. |
| 1026 uint64 upload_size_; |
| 1027 uint64 upload_position_; |
| 1023 | 1028 |
| 1024 // Data for current page ----------------------------------------------------- | 1029 // Data for current page ----------------------------------------------------- |
| 1025 | 1030 |
| 1026 // Whether we have a (non-empty) title for the current page. | 1031 // Whether we have a (non-empty) title for the current page. |
| 1027 // Used to prevent subsequent title updates from affecting history. This | 1032 // Used to prevent subsequent title updates from affecting history. This |
| 1028 // prevents some weirdness because some AJAXy apps use titles for status | 1033 // prevents some weirdness because some AJAXy apps use titles for status |
| 1029 // messages. | 1034 // messages. |
| 1030 bool received_page_title_; | 1035 bool received_page_title_; |
| 1031 | 1036 |
| 1032 // Whether the current URL is starred | 1037 // Whether the current URL is starred |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1137 // If this tab was created from a renderer using window.open, this will be | 1142 // If this tab was created from a renderer using window.open, this will be |
| 1138 // non-NULL and represent the DOMUI of the opening renderer. | 1143 // non-NULL and represent the DOMUI of the opening renderer. |
| 1139 DOMUITypeID opener_dom_ui_type_; | 1144 DOMUITypeID opener_dom_ui_type_; |
| 1140 | 1145 |
| 1141 // --------------------------------------------------------------------------- | 1146 // --------------------------------------------------------------------------- |
| 1142 | 1147 |
| 1143 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1148 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1144 }; | 1149 }; |
| 1145 | 1150 |
| 1146 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1151 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |