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

Side by Side Diff: chrome/browser/tab_contents/render_view_host_manager.h

Issue 100033: Synchronously update the loading state when a load starts so that the UI will... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "chrome/browser/renderer_host/render_view_host.h" 10 #include "chrome/browser/renderer_host/render_view_host.h"
(...skipping 24 matching lines...) Expand all
35 // WebContents are inherited and non-virtual. These are named with 35 // WebContents are inherited and non-virtual. These are named with
36 // "RenderManager" so that the duplicate implementation of them will be clear. 36 // "RenderManager" so that the duplicate implementation of them will be clear.
37 class Delegate { 37 class Delegate {
38 public: 38 public:
39 // See web_contents.h's implementation for more. 39 // See web_contents.h's implementation for more.
40 virtual bool CreateRenderViewForRenderManager( 40 virtual bool CreateRenderViewForRenderManager(
41 RenderViewHost* render_view_host) = 0; 41 RenderViewHost* render_view_host) = 0;
42 virtual void BeforeUnloadFiredFromRenderManager( 42 virtual void BeforeUnloadFiredFromRenderManager(
43 bool proceed, bool* proceed_to_fire_unload) = 0; 43 bool proceed, bool* proceed_to_fire_unload) = 0;
44 virtual void DidStartLoadingFromRenderManager( 44 virtual void DidStartLoadingFromRenderManager(
45 RenderViewHost* render_view_host, int32 page_id) = 0; 45 RenderViewHost* render_view_host) = 0;
46 virtual void RenderViewGoneFromRenderManager( 46 virtual void RenderViewGoneFromRenderManager(
47 RenderViewHost* render_view_host) = 0; 47 RenderViewHost* render_view_host) = 0;
48 virtual void UpdateRenderViewSizeForRenderManager() = 0; 48 virtual void UpdateRenderViewSizeForRenderManager() = 0;
49 virtual void NotifySwappedFromRenderManager() = 0; 49 virtual void NotifySwappedFromRenderManager() = 0;
50 virtual NavigationController& GetControllerForRenderManager() = 0; 50 virtual NavigationController& GetControllerForRenderManager() = 0;
51 51
52 // Creates a DOMUI object for the given URL if one applies. Ownership of the 52 // Creates a DOMUI object for the given URL if one applies. Ownership of the
53 // returned pointer will be passed to the caller. If no DOMUI applies, 53 // returned pointer will be passed to the caller. If no DOMUI applies,
54 // returns NULL. 54 // returns NULL.
55 virtual DOMUI* CreateDOMUIForRenderManager(const GURL& url) = 0; 55 virtual DOMUI* CreateDOMUIForRenderManager(const GURL& url) = 0;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 }; 251 };
252 252
253 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old 253 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old
254 // host can be NULL when the first RenderViewHost is set. 254 // host can be NULL when the first RenderViewHost is set.
255 struct RenderViewHostSwitchedDetails { 255 struct RenderViewHostSwitchedDetails {
256 RenderViewHost* old_host; 256 RenderViewHost* old_host;
257 RenderViewHost* new_host; 257 RenderViewHost* new_host;
258 }; 258 };
259 259
260 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 260 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_delegate.h ('k') | chrome/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698