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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 virtual void SetViewType(content::ViewType type) OVERRIDE; | 147 virtual void SetViewType(content::ViewType type) OVERRIDE; |
148 virtual content::ViewType GetViewType() const OVERRIDE; | 148 virtual content::ViewType GetViewType() const OVERRIDE; |
149 virtual content::RenderProcessHost* GetRenderProcessHost() const OVERRIDE; | 149 virtual content::RenderProcessHost* GetRenderProcessHost() const OVERRIDE; |
150 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE; | 150 virtual content::RenderViewHost* GetRenderViewHost() const OVERRIDE; |
151 virtual content::RenderWidgetHostView* | 151 virtual content::RenderWidgetHostView* |
152 GetRenderWidgetHostView() const OVERRIDE; | 152 GetRenderWidgetHostView() const OVERRIDE; |
153 virtual content::WebContentsView* GetView() const OVERRIDE; | 153 virtual content::WebContentsView* GetView() const OVERRIDE; |
154 virtual content::WebUI* CreateWebUI(const GURL& url) OVERRIDE; | 154 virtual content::WebUI* CreateWebUI(const GURL& url) OVERRIDE; |
155 virtual content::WebUI* GetWebUI() const OVERRIDE; | 155 virtual content::WebUI* GetWebUI() const OVERRIDE; |
156 virtual content::WebUI* GetCommittedWebUI() const OVERRIDE; | 156 virtual content::WebUI* GetCommittedWebUI() const OVERRIDE; |
| 157 virtual void SetUserAgentOverride(const std::string& override) OVERRIDE; |
| 158 virtual const std::string& GetUserAgentOverride() const OVERRIDE; |
157 virtual const string16& GetTitle() const OVERRIDE; | 159 virtual const string16& GetTitle() const OVERRIDE; |
158 virtual int32 GetMaxPageID() OVERRIDE; | 160 virtual int32 GetMaxPageID() OVERRIDE; |
159 virtual int32 GetMaxPageIDForSiteInstance( | 161 virtual int32 GetMaxPageIDForSiteInstance( |
160 content::SiteInstance* site_instance) OVERRIDE; | 162 content::SiteInstance* site_instance) OVERRIDE; |
161 virtual content::SiteInstance* GetSiteInstance() const OVERRIDE; | 163 virtual content::SiteInstance* GetSiteInstance() const OVERRIDE; |
162 virtual content::SiteInstance* GetPendingSiteInstance() const OVERRIDE; | 164 virtual content::SiteInstance* GetPendingSiteInstance() const OVERRIDE; |
163 virtual bool IsLoading() const OVERRIDE; | 165 virtual bool IsLoading() const OVERRIDE; |
164 virtual bool IsWaitingForResponse() const OVERRIDE; | 166 virtual bool IsWaitingForResponse() const OVERRIDE; |
165 virtual const net::LoadStateWithParam& GetLoadState() const OVERRIDE; | 167 virtual const net::LoadStateWithParam& GetLoadState() const OVERRIDE; |
166 virtual const string16& GetLoadStateHost() const OVERRIDE; | 168 virtual const string16& GetLoadStateHost() const OVERRIDE; |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 | 544 |
543 // The corresponding view. | 545 // The corresponding view. |
544 scoped_ptr<content::WebContentsView> view_; | 546 scoped_ptr<content::WebContentsView> view_; |
545 | 547 |
546 // A list of observers notified when page state changes. Weak references. | 548 // A list of observers notified when page state changes. Weak references. |
547 // This MUST be listed above render_manager_ since at destruction time the | 549 // This MUST be listed above render_manager_ since at destruction time the |
548 // latter might cause RenderViewHost's destructor to call us and we might use | 550 // latter might cause RenderViewHost's destructor to call us and we might use |
549 // the observer list then. | 551 // the observer list then. |
550 ObserverList<content::WebContentsObserver> observers_; | 552 ObserverList<content::WebContentsObserver> observers_; |
551 | 553 |
| 554 // User agent to use if a NavigationEntry requires that the default user agent |
| 555 // is overridden. |
| 556 std::string user_agent_override_; |
| 557 |
552 // Helper classes ------------------------------------------------------------ | 558 // Helper classes ------------------------------------------------------------ |
553 | 559 |
554 // Manages creation and swapping of render views. | 560 // Manages creation and swapping of render views. |
555 RenderViewHostManager render_manager_; | 561 RenderViewHostManager render_manager_; |
556 | 562 |
557 // Manages injecting Java objects into all RenderViewHosts associated with | 563 // Manages injecting Java objects into all RenderViewHosts associated with |
558 // this WebContentsImpl. | 564 // this WebContentsImpl. |
559 scoped_ptr<JavaBridgeDispatcherHostManager> | 565 scoped_ptr<JavaBridgeDispatcherHostManager> |
560 java_bridge_dispatcher_host_manager_; | 566 java_bridge_dispatcher_host_manager_; |
561 | 567 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 // Is there an opener associated with this? | 685 // Is there an opener associated with this? |
680 bool has_opener_; | 686 bool has_opener_; |
681 | 687 |
682 // Color chooser that was opened by this tab. | 688 // Color chooser that was opened by this tab. |
683 content::ColorChooser* color_chooser_; | 689 content::ColorChooser* color_chooser_; |
684 | 690 |
685 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 691 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
686 }; | 692 }; |
687 | 693 |
688 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 694 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |