Chromium Code Reviews| 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_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 <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 16 #include "base/property_bag.h" | 16 #include "base/property_bag.h" |
| 17 #include "content/browser/browser_plugin/browser_plugin_web_contents_observer.h" | |
| 17 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h" | 18 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h" |
| 18 #include "content/browser/tab_contents/navigation_controller_impl.h" | 19 #include "content/browser/tab_contents/navigation_controller_impl.h" |
| 19 #include "content/browser/tab_contents/render_view_host_manager.h" | 20 #include "content/browser/tab_contents/render_view_host_manager.h" |
| 20 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
| 21 #include "content/public/browser/render_view_host_delegate.h" | 22 #include "content/public/browser/render_view_host_delegate.h" |
| 22 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
| 23 #include "content/public/common/renderer_preferences.h" | 24 #include "content/public/common/renderer_preferences.h" |
| 24 #include "net/base/load_states.h" | 25 #include "net/base/load_states.h" |
| 25 #include "ui/gfx/size.h" | 26 #include "ui/gfx/size.h" |
| 26 #include "webkit/glue/resource_type.h" | 27 #include "webkit/glue/resource_type.h" |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 553 // Helper classes ------------------------------------------------------------ | 554 // Helper classes ------------------------------------------------------------ |
| 554 | 555 |
| 555 // Manages creation and swapping of render views. | 556 // Manages creation and swapping of render views. |
| 556 RenderViewHostManager render_manager_; | 557 RenderViewHostManager render_manager_; |
| 557 | 558 |
| 558 // Manages injecting Java objects into all RenderViewHosts associated with | 559 // Manages injecting Java objects into all RenderViewHosts associated with |
| 559 // this TabContents. | 560 // this TabContents. |
| 560 scoped_ptr<JavaBridgeDispatcherHostManager> | 561 scoped_ptr<JavaBridgeDispatcherHostManager> |
| 561 java_bridge_dispatcher_host_manager_; | 562 java_bridge_dispatcher_host_manager_; |
| 562 | 563 |
| 564 scoped_ptr<content::BrowserPluginWebContentsObserver> | |
| 565 browser_plugin_web_contents_observer_; | |
|
jam
2012/04/04 00:54:45
why not just have a getter on this class instead o
Fady Samuel
2012/04/04 16:45:40
Remnant of an older refactoring attempt, removed.
| |
| 563 // SavePackage, lazily created. | 566 // SavePackage, lazily created. |
| 564 scoped_refptr<SavePackage> save_package_; | 567 scoped_refptr<SavePackage> save_package_; |
| 565 | 568 |
| 566 // Data for loading state ---------------------------------------------------- | 569 // Data for loading state ---------------------------------------------------- |
| 567 | 570 |
| 568 // Indicates whether we're currently loading a resource. | 571 // Indicates whether we're currently loading a resource. |
| 569 bool is_loading_; | 572 bool is_loading_; |
| 570 | 573 |
| 571 // Indicates if the tab is considered crashed. | 574 // Indicates if the tab is considered crashed. |
| 572 base::TerminationStatus crashed_status_; | 575 base::TerminationStatus crashed_status_; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 679 // Is there an opener associated with this? | 682 // Is there an opener associated with this? |
| 680 bool has_opener_; | 683 bool has_opener_; |
| 681 | 684 |
| 682 // Color chooser that was opened by this tab. | 685 // Color chooser that was opened by this tab. |
| 683 content::ColorChooser* color_chooser_; | 686 content::ColorChooser* color_chooser_; |
| 684 | 687 |
| 685 DISALLOW_COPY_AND_ASSIGN(TabContents); | 688 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 686 }; | 689 }; |
| 687 | 690 |
| 688 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 691 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |