Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: content/browser/tab_contents/tab_contents.h

Issue 8983010: Convert WebContents to return a content::NavigationController instead of the implementation. Upda... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } 111 }
112 112
113 void set_opener_web_ui_type(WebUI::TypeID opener_web_ui_type) { 113 void set_opener_web_ui_type(WebUI::TypeID opener_web_ui_type) {
114 opener_web_ui_type_ = opener_web_ui_type; 114 opener_web_ui_type_ = opener_web_ui_type;
115 } 115 }
116 116
117 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const { 117 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const {
118 return java_bridge_dispatcher_host_manager_.get(); 118 return java_bridge_dispatcher_host_manager_.get();
119 } 119 }
120 120
121 // Like GetController from WebContents, but returns the concrete object.
122 NavigationController& GetControllerImpl();
123
121 // content::WebContents ------------------------------------------------------ 124 // content::WebContents ------------------------------------------------------
122 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE; 125 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE;
123 virtual base::PropertyBag* GetPropertyBag() OVERRIDE; 126 virtual base::PropertyBag* GetPropertyBag() OVERRIDE;
124 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE; 127 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE;
125 virtual void SetDelegate(content::WebContentsDelegate* delegate) OVERRIDE; 128 virtual void SetDelegate(content::WebContentsDelegate* delegate) OVERRIDE;
126 virtual NavigationController& GetController() OVERRIDE; 129 virtual content::NavigationController& GetController() OVERRIDE;
127 virtual const NavigationController& GetController() const OVERRIDE; 130 virtual const content::NavigationController& GetController() const OVERRIDE;
128 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE; 131 virtual content::BrowserContext* GetBrowserContext() const OVERRIDE;
129 virtual void SetViewType(content::ViewType type) OVERRIDE; 132 virtual void SetViewType(content::ViewType type) OVERRIDE;
130 virtual content::ViewType GetViewType() const OVERRIDE; 133 virtual content::ViewType GetViewType() const OVERRIDE;
131 virtual content::RenderProcessHost* GetRenderProcessHost() const OVERRIDE; 134 virtual content::RenderProcessHost* GetRenderProcessHost() const OVERRIDE;
132 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; 135 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE;
133 virtual RenderWidgetHostView* GetRenderWidgetHostView() const OVERRIDE; 136 virtual RenderWidgetHostView* GetRenderWidgetHostView() const OVERRIDE;
134 virtual TabContentsView* GetView() const OVERRIDE; 137 virtual TabContentsView* GetView() const OVERRIDE;
135 virtual WebUI* GetWebUI() const OVERRIDE; 138 virtual WebUI* GetWebUI() const OVERRIDE;
136 virtual WebUI* GetCommittedWebUI() const OVERRIDE; 139 virtual WebUI* GetCommittedWebUI() const OVERRIDE;
137 virtual const string16& GetTitle() const OVERRIDE; 140 virtual const string16& GetTitle() const OVERRIDE;
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 // (full-page plugins for now only) permissions. 636 // (full-page plugins for now only) permissions.
634 int content_restrictions_; 637 int content_restrictions_;
635 638
636 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. 639 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS.
637 content::ViewType view_type_; 640 content::ViewType view_type_;
638 641
639 DISALLOW_COPY_AND_ASSIGN(TabContents); 642 DISALLOW_COPY_AND_ASSIGN(TabContents);
640 }; 643 };
641 644
642 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 645 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698