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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 23618036: Merge NOTIFICATION_RENDER_VIEW_HOST_CHANGED into NOTIFICATION_WEB_CONTENTS_SWAPPED. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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) 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
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 NotifySwappedFromRenderManager( 496 virtual void NotifySwappedFromRenderManager(
497 RenderViewHost* old_render_view_host) OVERRIDE; 497 RenderViewHost* old_host, RenderViewHost* new_host) OVERRIDE;
498 virtual int CreateOpenerRenderViewsForRenderManager( 498 virtual int CreateOpenerRenderViewsForRenderManager(
499 SiteInstance* instance) OVERRIDE; 499 SiteInstance* instance) OVERRIDE;
500 virtual NavigationControllerImpl& 500 virtual NavigationControllerImpl&
501 GetControllerForRenderManager() OVERRIDE; 501 GetControllerForRenderManager() OVERRIDE;
502 virtual WebUIImpl* CreateWebUIForRenderManager(const GURL& url) OVERRIDE; 502 virtual WebUIImpl* CreateWebUIForRenderManager(const GURL& url) OVERRIDE;
503 virtual NavigationEntry* 503 virtual NavigationEntry*
504 GetLastCommittedNavigationEntryForRenderManager() OVERRIDE; 504 GetLastCommittedNavigationEntryForRenderManager() OVERRIDE;
505 virtual bool FocusLocationBarByDefault() OVERRIDE; 505 virtual bool FocusLocationBarByDefault() OVERRIDE;
506 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE; 506 virtual void SetFocusToLocationBar(bool select_all) OVERRIDE;
507 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE; 507 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh) OVERRIDE;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 // Returns the RenderWidgetHostView that is associated with a native window 737 // Returns the RenderWidgetHostView that is associated with a native window
738 // and can be used in showing created widgets. 738 // and can be used in showing created widgets.
739 // If this WebContents belongs to a browser plugin guest, there is no native 739 // If this WebContents belongs to a browser plugin guest, there is no native
740 // window 'view' associated with this WebContents. This method returns the 740 // window 'view' associated with this WebContents. This method returns the
741 // 'view' of the embedder instead. 741 // 'view' of the embedder instead.
742 RenderWidgetHostViewPort* GetRenderWidgetHostViewPort() const; 742 RenderWidgetHostViewPort* GetRenderWidgetHostViewPort() const;
743 743
744 // Misc non-view stuff ------------------------------------------------------- 744 // Misc non-view stuff -------------------------------------------------------
745 745
746 // Helper functions for sending notifications. 746 // Helper functions for sending notifications.
747 void NotifySwapped(RenderViewHost* old_render_view_host); 747 void NotifySwapped(RenderViewHost* old_host, RenderViewHost* new_host);
748 void NotifyDisconnected(); 748 void NotifyDisconnected();
749 void NotifyNavigationEntryCommitted(const LoadCommittedDetails& load_details); 749 void NotifyNavigationEntryCommitted(const LoadCommittedDetails& load_details);
750 750
751 void SetEncoding(const std::string& encoding); 751 void SetEncoding(const std::string& encoding);
752 752
753 RenderViewHostImpl* GetRenderViewHostImpl(); 753 RenderViewHostImpl* GetRenderViewHostImpl();
754 754
755 FrameTreeNode* FindFrameTreeNodeByID(int64 frame_id); 755 FrameTreeNode* FindFrameTreeNodeByID(int64 frame_id);
756 756
757 // Removes browser plugin embedder if there is one. 757 // Removes browser plugin embedder if there is one.
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 // Maps the ids of pending image downloads to their callbacks 970 // Maps the ids of pending image downloads to their callbacks
971 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; 971 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap;
972 ImageDownloadMap image_download_map_; 972 ImageDownloadMap image_download_map_;
973 973
974 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 974 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
975 }; 975 };
976 976
977 } // namespace content 977 } // namespace content
978 978
979 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 979 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698