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

Side by Side Diff: chrome/browser/thumbnails/thumbnail_tab_helper.h

Issue 1008913002: Remove RenderViewHost parameter from WebContentsObserver::Did{Start|Stop}Loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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
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 CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_
6 #define CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_ 6 #define CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/thumbnails/thumbnailing_context.h" 9 #include "chrome/browser/thumbnails/thumbnailing_context.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 23 matching lines...) Expand all
34 explicit ThumbnailTabHelper(content::WebContents* contents); 34 explicit ThumbnailTabHelper(content::WebContents* contents);
35 friend class content::WebContentsUserData<ThumbnailTabHelper>; 35 friend class content::WebContentsUserData<ThumbnailTabHelper>;
36 36
37 // content::NotificationObserver overrides. 37 // content::NotificationObserver overrides.
38 void Observe(int type, 38 void Observe(int type,
39 const content::NotificationSource& source, 39 const content::NotificationSource& source,
40 const content::NotificationDetails& details) override; 40 const content::NotificationDetails& details) override;
41 41
42 // content::WebContentsObserver overrides. 42 // content::WebContentsObserver overrides.
43 void RenderViewDeleted(content::RenderViewHost* render_view_host) override; 43 void RenderViewDeleted(content::RenderViewHost* render_view_host) override;
44 void DidStartLoading(content::RenderViewHost* render_view_host) override; 44 void DidStartLoading() override;
45 void NavigationStopped() override; 45 void NavigationStopped() override;
46 46
47 // Update the thumbnail of the given tab contents if necessary. 47 // Update the thumbnail of the given tab contents if necessary.
48 void UpdateThumbnailIfNecessary(content::WebContents* web_contents); 48 void UpdateThumbnailIfNecessary(content::WebContents* web_contents);
49 49
50 // Called when a render view host was created for a WebContents. 50 // Called when a render view host was created for a WebContents.
51 void RenderViewHostCreated(content::RenderViewHost* renderer); 51 void RenderViewHostCreated(content::RenderViewHost* renderer);
52 52
53 // Indicates that the given widget has changed is visibility. 53 // Indicates that the given widget has changed is visibility.
54 void WidgetHidden(content::RenderWidgetHost* widget); 54 void WidgetHidden(content::RenderWidgetHost* widget);
55 55
56 bool enabled_; 56 bool enabled_;
57 57
58 content::NotificationRegistrar registrar_; 58 content::NotificationRegistrar registrar_;
59 59
60 bool load_interrupted_; 60 bool load_interrupted_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(ThumbnailTabHelper); 62 DISALLOW_COPY_AND_ASSIGN(ThumbnailTabHelper);
63 }; 63 };
64 64
65 #endif // CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_ 65 #endif // CHROME_BROWSER_THUMBNAILS_THUMBNAIL_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/navigation_metrics_recorder.cc ('k') | chrome/browser/thumbnails/thumbnail_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698