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

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

Issue 482003: Get web app icon via FavIconHelper and auto repair/update (Closed)
Patch Set: miranda's review 1 Created 11 years 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
« no previous file with comments | « chrome/browser/fav_icon_helper.cc ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_TAB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include <map> 10 #include <map>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // time and can be NULL (during setup and teardown). 168 // time and can be NULL (during setup and teardown).
169 RenderWidgetHostView* render_widget_host_view() const { 169 RenderWidgetHostView* render_widget_host_view() const {
170 return render_manager_.current_view(); 170 return render_manager_.current_view();
171 } 171 }
172 172
173 // The TabContentsView will never change and is guaranteed non-NULL. 173 // The TabContentsView will never change and is guaranteed non-NULL.
174 TabContentsView* view() const { 174 TabContentsView* view() const {
175 return view_.get(); 175 return view_.get();
176 } 176 }
177 177
178 // Returns the FavIconHelper of this TabContents.
179 FavIconHelper& fav_icon_helper() {
180 return fav_icon_helper_;
181 }
182
178 #ifdef UNIT_TEST 183 #ifdef UNIT_TEST
179 // Expose the render manager for testing. 184 // Expose the render manager for testing.
180 RenderViewHostManager* render_manager() { return &render_manager_; } 185 RenderViewHostManager* render_manager() { return &render_manager_; }
181 #endif 186 #endif
182 187
183 // Tab navigation state ------------------------------------------------------ 188 // Tab navigation state ------------------------------------------------------
184 189
185 // Returns the current navigation properties, which if a navigation is 190 // Returns the current navigation properties, which if a navigation is
186 // pending may be provisional (e.g., the navigation could result in a 191 // pending may be provisional (e.g., the navigation could result in a
187 // download, in which case the URL would revert to what it was previously). 192 // download, in which case the URL would revert to what it was previously).
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 992
988 // Registers and unregisters us for notifications. 993 // Registers and unregisters us for notifications.
989 NotificationRegistrar registrar_; 994 NotificationRegistrar registrar_;
990 995
991 // Handles print preview and print job for this contents. 996 // Handles print preview and print job for this contents.
992 printing::PrintViewManager printing_; 997 printing::PrintViewManager printing_;
993 998
994 // SavePackage, lazily created. 999 // SavePackage, lazily created.
995 scoped_refptr<SavePackage> save_package_; 1000 scoped_refptr<SavePackage> save_package_;
996 1001
997 // Tracks our pending CancelableRequests. This maps pending requests to
998 // page IDs so that we know whether a given callback still applies. The
999 // page ID -1 means no page ID was set.
1000 CancelableRequestConsumerT<int32, -1> cancelable_consumer_;
1001
1002 // FormFieldHistoryManager, lazily created. 1002 // FormFieldHistoryManager, lazily created.
1003 scoped_ptr<FormFieldHistoryManager> form_field_history_manager_; 1003 scoped_ptr<FormFieldHistoryManager> form_field_history_manager_;
1004 1004
1005 // AutoFillManager, lazily created. 1005 // AutoFillManager, lazily created.
1006 scoped_ptr<AutoFillManager> autofill_manager_; 1006 scoped_ptr<AutoFillManager> autofill_manager_;
1007 1007
1008 // PasswordManager, lazily created. 1008 // PasswordManager, lazily created.
1009 scoped_ptr<PasswordManager> password_manager_; 1009 scoped_ptr<PasswordManager> password_manager_;
1010 1010
1011 // PluginInstaller, lazily created. 1011 // PluginInstaller, lazily created.
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 // Can be NULL in which case we defer to the request context from the 1175 // Can be NULL in which case we defer to the request context from the
1176 // profile 1176 // profile
1177 scoped_refptr<URLRequestContextGetter> request_context_; 1177 scoped_refptr<URLRequestContextGetter> request_context_;
1178 1178
1179 // --------------------------------------------------------------------------- 1179 // ---------------------------------------------------------------------------
1180 1180
1181 DISALLOW_COPY_AND_ASSIGN(TabContents); 1181 DISALLOW_COPY_AND_ASSIGN(TabContents);
1182 }; 1182 };
1183 1183
1184 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1184 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/fav_icon_helper.cc ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698