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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 virtual bool CreateRenderViewForRenderManager( | 488 virtual bool CreateRenderViewForRenderManager( |
489 RenderViewHost* render_view_host, int opener_route_id) OVERRIDE; | 489 RenderViewHost* render_view_host, int opener_route_id) OVERRIDE; |
490 virtual void BeforeUnloadFiredFromRenderManager( | 490 virtual void BeforeUnloadFiredFromRenderManager( |
491 bool proceed, const base::TimeTicks& proceed_time, | 491 bool proceed, const base::TimeTicks& proceed_time, |
492 bool* proceed_to_fire_unload) OVERRIDE; | 492 bool* proceed_to_fire_unload) OVERRIDE; |
493 virtual void RenderProcessGoneFromRenderManager( | 493 virtual void RenderProcessGoneFromRenderManager( |
494 RenderViewHost* render_view_host) OVERRIDE; | 494 RenderViewHost* render_view_host) OVERRIDE; |
495 virtual void UpdateRenderViewSizeForRenderManager() OVERRIDE; | 495 virtual void UpdateRenderViewSizeForRenderManager() OVERRIDE; |
496 virtual void CancelModalDialogsForRenderManager() OVERRIDE; | 496 virtual void CancelModalDialogsForRenderManager() OVERRIDE; |
497 virtual void NotifySwappedFromRenderManager( | 497 virtual void NotifySwappedFromRenderManager( |
498 RenderViewHost* old_render_view_host) OVERRIDE; | 498 RenderViewHost* old_host, RenderViewHost* new_host) OVERRIDE; |
499 virtual int CreateOpenerRenderViewsForRenderManager( | 499 virtual int CreateOpenerRenderViewsForRenderManager( |
500 SiteInstance* instance) OVERRIDE; | 500 SiteInstance* instance) OVERRIDE; |
501 virtual NavigationControllerImpl& | 501 virtual NavigationControllerImpl& |
502 GetControllerForRenderManager() OVERRIDE; | 502 GetControllerForRenderManager() OVERRIDE; |
503 virtual WebUIImpl* CreateWebUIForRenderManager(const GURL& url) OVERRIDE; | 503 virtual WebUIImpl* CreateWebUIForRenderManager(const GURL& url) OVERRIDE; |
504 virtual NavigationEntry* | 504 virtual NavigationEntry* |
505 GetLastCommittedNavigationEntryForRenderManager() OVERRIDE; | 505 GetLastCommittedNavigationEntryForRenderManager() OVERRIDE; |
506 virtual bool FocusLocationBarByDefault() OVERRIDE; | 506 virtual bool FocusLocationBarByDefault() OVERRIDE; |
507 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; | 507 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; |
508 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE; | 508 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 // Returns the RenderWidgetHostView that is associated with a native window | 738 // Returns the RenderWidgetHostView that is associated with a native window |
739 // and can be used in showing created widgets. | 739 // and can be used in showing created widgets. |
740 // If this WebContents belongs to a browser plugin guest, there is no native | 740 // If this WebContents belongs to a browser plugin guest, there is no native |
741 // window 'view' associated with this WebContents. This method returns the | 741 // window 'view' associated with this WebContents. This method returns the |
742 // 'view' of the embedder instead. | 742 // 'view' of the embedder instead. |
743 RenderWidgetHostViewPort* GetRenderWidgetHostViewPort() const; | 743 RenderWidgetHostViewPort* GetRenderWidgetHostViewPort() const; |
744 | 744 |
745 // Misc non-view stuff ------------------------------------------------------- | 745 // Misc non-view stuff ------------------------------------------------------- |
746 | 746 |
747 // Helper functions for sending notifications. | 747 // Helper functions for sending notifications. |
748 void NotifySwapped(RenderViewHost* old_render_view_host); | 748 void NotifySwapped(RenderViewHost* old_host, RenderViewHost* new_host); |
749 void NotifyDisconnected(); | 749 void NotifyDisconnected(); |
750 void NotifyNavigationEntryCommitted(const LoadCommittedDetails& load_details); | 750 void NotifyNavigationEntryCommitted(const LoadCommittedDetails& load_details); |
751 | 751 |
752 void SetEncoding(const std::string& encoding); | 752 void SetEncoding(const std::string& encoding); |
753 | 753 |
754 RenderViewHostImpl* GetRenderViewHostImpl(); | 754 RenderViewHostImpl* GetRenderViewHostImpl(); |
755 | 755 |
756 FrameTreeNode* FindFrameTreeNodeByID(int64 frame_id); | 756 FrameTreeNode* FindFrameTreeNodeByID(int64 frame_id); |
757 | 757 |
758 // Removes browser plugin embedder if there is one. | 758 // Removes browser plugin embedder if there is one. |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 // Maps the ids of pending image downloads to their callbacks | 971 // Maps the ids of pending image downloads to their callbacks |
972 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 972 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
973 ImageDownloadMap image_download_map_; | 973 ImageDownloadMap image_download_map_; |
974 | 974 |
975 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 975 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
976 }; | 976 }; |
977 | 977 |
978 } // namespace content | 978 } // namespace content |
979 | 979 |
980 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 980 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |