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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 // A list of observers notified when page state changes. Weak references. | 658 // A list of observers notified when page state changes. Weak references. |
659 // This MUST be listed above render_manager_ since at destruction time the | 659 // This MUST be listed above render_manager_ since at destruction time the |
660 // latter might cause RenderViewHost's destructor to call us and we might use | 660 // latter might cause RenderViewHost's destructor to call us and we might use |
661 // the observer list then. | 661 // the observer list then. |
662 ObserverList<content::WebContentsObserver> observers_; | 662 ObserverList<content::WebContentsObserver> observers_; |
663 | 663 |
664 // The tab that opened this tab, if any. Will be set to null if the opener | 664 // The tab that opened this tab, if any. Will be set to null if the opener |
665 // is closed. | 665 // is closed. |
666 WebContentsImpl* opener_; | 666 WebContentsImpl* opener_; |
667 | 667 |
668 // User agent to use if a NavigationEntry requires that the default user agent | |
669 // is overridden. | |
670 std::string user_agent_override_; | |
671 | |
672 // Helper classes ------------------------------------------------------------ | 668 // Helper classes ------------------------------------------------------------ |
673 | 669 |
674 // Manages creation and swapping of render views. | 670 // Manages creation and swapping of render views. |
675 RenderViewHostManager render_manager_; | 671 RenderViewHostManager render_manager_; |
676 | 672 |
677 // Manages injecting Java objects into all RenderViewHosts associated with | 673 // Manages injecting Java objects into all RenderViewHosts associated with |
678 // this WebContentsImpl. | 674 // this WebContentsImpl. |
679 scoped_ptr<JavaBridgeDispatcherHostManager> | 675 scoped_ptr<JavaBridgeDispatcherHostManager> |
680 java_bridge_dispatcher_host_manager_; | 676 java_bridge_dispatcher_host_manager_; |
681 | 677 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 content::ColorChooser* color_chooser_; | 794 content::ColorChooser* color_chooser_; |
799 | 795 |
800 // This must be at the end, or else we might get notifications and use other | 796 // This must be at the end, or else we might get notifications and use other |
801 // member variables that are gone. | 797 // member variables that are gone. |
802 content::NotificationRegistrar registrar_; | 798 content::NotificationRegistrar registrar_; |
803 | 799 |
804 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 800 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
805 }; | 801 }; |
806 | 802 |
807 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 803 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |