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

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

Issue 8614003: Add OVERRIDE to chrome/browser/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_THUMBNAIL_GENERATOR_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // Update the thumbnail of the given tab contents if necessary. 118 // Update the thumbnail of the given tab contents if necessary.
119 void UpdateThumbnailIfNecessary(TabContents* tab_contents); 119 void UpdateThumbnailIfNecessary(TabContents* tab_contents);
120 120
121 // Returns true if we should update the thumbnail of the given URL. 121 // Returns true if we should update the thumbnail of the given URL.
122 static bool ShouldUpdateThumbnail(Profile* profile, 122 static bool ShouldUpdateThumbnail(Profile* profile,
123 history::TopSites* top_sites, 123 history::TopSites* top_sites,
124 const GURL& url); 124 const GURL& url);
125 125
126 // TabContentsObserver overrides. 126 // TabContentsObserver overrides.
127 virtual void DidStartLoading(); 127 virtual void DidStartLoading() OVERRIDE;
128 virtual void StopNavigation(); 128 virtual void StopNavigation() OVERRIDE;
129 129
130 private: 130 private:
131 virtual void WidgetDidReceivePaintAtSizeAck( 131 virtual void WidgetDidReceivePaintAtSizeAck(
132 RenderWidgetHost* widget, 132 RenderWidgetHost* widget,
133 int tag, 133 int tag,
134 const gfx::Size& size); 134 const gfx::Size& size);
135 135
136 // content::NotificationObserver interface. 136 // content::NotificationObserver interface.
137 virtual void Observe(int type, 137 virtual void Observe(int type,
138 const content::NotificationSource& source, 138 const content::NotificationSource& source,
139 const content::NotificationDetails& details); 139 const content::NotificationDetails& details) OVERRIDE;
140 140
141 // Indicates that the given widget has changed is visibility. 141 // Indicates that the given widget has changed is visibility.
142 void WidgetHidden(RenderWidgetHost* widget); 142 void WidgetHidden(RenderWidgetHost* widget);
143 143
144 // Called when the given tab contents are disconnected (either 144 // Called when the given tab contents are disconnected (either
145 // through being closed, or because the renderer is no longer there). 145 // through being closed, or because the renderer is no longer there).
146 void TabContentsDisconnected(TabContents* contents); 146 void TabContentsDisconnected(TabContents* contents);
147 147
148 content::NotificationRegistrar registrar_; 148 content::NotificationRegistrar registrar_;
149 149
150 // Map of callback objects by sequence number. 150 // Map of callback objects by sequence number.
151 struct AsyncRequestInfo; 151 struct AsyncRequestInfo;
152 typedef std::map<int, 152 typedef std::map<int,
153 linked_ptr<AsyncRequestInfo> > ThumbnailCallbackMap; 153 linked_ptr<AsyncRequestInfo> > ThumbnailCallbackMap;
154 ThumbnailCallbackMap callback_map_; 154 ThumbnailCallbackMap callback_map_;
155 155
156 bool load_interrupted_; 156 bool load_interrupted_;
157 157
158 DISALLOW_COPY_AND_ASSIGN(ThumbnailGenerator); 158 DISALLOW_COPY_AND_ASSIGN(ThumbnailGenerator);
159 }; 159 };
160 160
161 #endif // CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_ 161 #endif // CHROME_BROWSER_TAB_CONTENTS_THUMBNAIL_GENERATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.h ('k') | chrome/browser/tabs/default_tab_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698