| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 virtual WebContentsDelegate* GetDelegate() OVERRIDE; | 168 virtual WebContentsDelegate* GetDelegate() OVERRIDE; |
| 169 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; | 169 virtual void SetDelegate(WebContentsDelegate* delegate) OVERRIDE; |
| 170 virtual NavigationControllerImpl& GetController() OVERRIDE; | 170 virtual NavigationControllerImpl& GetController() OVERRIDE; |
| 171 virtual const NavigationControllerImpl& GetController() const OVERRIDE; | 171 virtual const NavigationControllerImpl& GetController() const OVERRIDE; |
| 172 virtual BrowserContext* GetBrowserContext() const OVERRIDE; | 172 virtual BrowserContext* GetBrowserContext() const OVERRIDE; |
| 173 virtual const GURL& GetURL() const OVERRIDE; | 173 virtual const GURL& GetURL() const OVERRIDE; |
| 174 virtual const GURL& GetVisibleURL() const OVERRIDE; | 174 virtual const GURL& GetVisibleURL() const OVERRIDE; |
| 175 virtual const GURL& GetLastCommittedURL() const OVERRIDE; | 175 virtual const GURL& GetLastCommittedURL() const OVERRIDE; |
| 176 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; | 176 virtual RenderProcessHost* GetRenderProcessHost() const OVERRIDE; |
| 177 virtual RenderFrameHost* GetMainFrame() OVERRIDE; | 177 virtual RenderFrameHost* GetMainFrame() OVERRIDE; |
| 178 virtual void SetMainFrameName(const std::string& name) OVERRIDE; |
| 178 virtual RenderFrameHost* GetFocusedFrame() OVERRIDE; | 179 virtual RenderFrameHost* GetFocusedFrame() OVERRIDE; |
| 179 virtual void ForEachFrame( | 180 virtual void ForEachFrame( |
| 180 const base::Callback<void(RenderFrameHost*)>& on_frame) OVERRIDE; | 181 const base::Callback<void(RenderFrameHost*)>& on_frame) OVERRIDE; |
| 181 virtual void SendToAllFrames(IPC::Message* message) OVERRIDE; | 182 virtual void SendToAllFrames(IPC::Message* message) OVERRIDE; |
| 182 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; | 183 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; |
| 183 virtual int GetRoutingID() const OVERRIDE; | 184 virtual int GetRoutingID() const OVERRIDE; |
| 184 virtual RenderWidgetHostView* GetRenderWidgetHostView() const OVERRIDE; | 185 virtual RenderWidgetHostView* GetRenderWidgetHostView() const OVERRIDE; |
| 185 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const | 186 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const |
| 186 OVERRIDE; | 187 OVERRIDE; |
| 187 virtual WebUI* CreateWebUI(const GURL& url) OVERRIDE; | 188 virtual WebUI* CreateWebUI(const GURL& url) OVERRIDE; |
| (...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 void OnFirstVisuallyNonEmptyPaint(); | 756 void OnFirstVisuallyNonEmptyPaint(); |
| 756 void OnMediaPlayingNotification(int64 player_cookie, | 757 void OnMediaPlayingNotification(int64 player_cookie, |
| 757 bool has_video, | 758 bool has_video, |
| 758 bool has_audio); | 759 bool has_audio); |
| 759 void OnMediaPausedNotification(int64 player_cookie); | 760 void OnMediaPausedNotification(int64 player_cookie); |
| 760 void OnShowValidationMessage(const gfx::Rect& anchor_in_root_view, | 761 void OnShowValidationMessage(const gfx::Rect& anchor_in_root_view, |
| 761 const base::string16& main_text, | 762 const base::string16& main_text, |
| 762 const base::string16& sub_text); | 763 const base::string16& sub_text); |
| 763 void OnHideValidationMessage(); | 764 void OnHideValidationMessage(); |
| 764 void OnMoveValidationMessage(const gfx::Rect& anchor_in_root_view); | 765 void OnMoveValidationMessage(const gfx::Rect& anchor_in_root_view); |
| 766 void OnUpdateFrameName(int render_frame_id, |
| 767 bool is_top_level, |
| 768 const std::string& name); |
| 765 | 769 |
| 766 | 770 |
| 767 // Called by derived classes to indicate that we're no longer waiting for a | 771 // Called by derived classes to indicate that we're no longer waiting for a |
| 768 // response. This won't actually update the throbber, but it will get picked | 772 // response. This won't actually update the throbber, but it will get picked |
| 769 // up at the next animation step if the throbber is going. | 773 // up at the next animation step if the throbber is going. |
| 770 void SetNotWaitingForResponse() { waiting_for_response_ = false; } | 774 void SetNotWaitingForResponse() { waiting_for_response_ = false; } |
| 771 | 775 |
| 772 // Navigation helpers -------------------------------------------------------- | 776 // Navigation helpers -------------------------------------------------------- |
| 773 // | 777 // |
| 774 // These functions are helpers for Navigate() and DidNavigate(). | 778 // These functions are helpers for Navigate() and DidNavigate(). |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1124 bool last_dialog_suppressed_; | 1128 bool last_dialog_suppressed_; |
| 1125 | 1129 |
| 1126 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; | 1130 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; |
| 1127 | 1131 |
| 1128 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 1132 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
| 1129 }; | 1133 }; |
| 1130 | 1134 |
| 1131 } // namespace content | 1135 } // namespace content |
| 1132 | 1136 |
| 1133 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1137 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |