OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 | 396 |
397 // Creates a new TabContents with the same state as this one. The returned | 397 // Creates a new TabContents with the same state as this one. The returned |
398 // heap-allocated pointer is owned by the caller. | 398 // heap-allocated pointer is owned by the caller. |
399 virtual TabContents* Clone(); | 399 virtual TabContents* Clone(); |
400 | 400 |
401 // Shows the page info. | 401 // Shows the page info. |
402 void ShowPageInfo(const GURL& url, | 402 void ShowPageInfo(const GURL& url, |
403 const NavigationEntry::SSLStatus& ssl, | 403 const NavigationEntry::SSLStatus& ssl, |
404 bool show_history); | 404 bool show_history); |
405 | 405 |
| 406 // Saves the favicon for the current page. |
| 407 void SaveFavicon(); |
| 408 |
406 // Window management --------------------------------------------------------- | 409 // Window management --------------------------------------------------------- |
407 | 410 |
408 // Create a new window constrained to this TabContents' clip and visibility. | 411 // Create a new window constrained to this TabContents' clip and visibility. |
409 // The window is initialized by using the supplied delegate to obtain basic | 412 // The window is initialized by using the supplied delegate to obtain basic |
410 // window characteristics, and the supplied view for the content. Note that | 413 // window characteristics, and the supplied view for the content. Note that |
411 // the returned ConstrainedWindow might not yet be visible. | 414 // the returned ConstrainedWindow might not yet be visible. |
412 ConstrainedWindow* CreateConstrainedDialog( | 415 ConstrainedWindow* CreateConstrainedDialog( |
413 ConstrainedWindowDelegate* delegate); | 416 ConstrainedWindowDelegate* delegate); |
414 | 417 |
415 // Adds a new tab or window with the given already-created contents | 418 // Adds a new tab or window with the given already-created contents |
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 // Content restrictions, used to disable print/copy etc based on content's | 1343 // Content restrictions, used to disable print/copy etc based on content's |
1341 // (full-page plugins for now only) permissions. | 1344 // (full-page plugins for now only) permissions. |
1342 int content_restrictions_; | 1345 int content_restrictions_; |
1343 | 1346 |
1344 // --------------------------------------------------------------------------- | 1347 // --------------------------------------------------------------------------- |
1345 | 1348 |
1346 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1349 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1347 }; | 1350 }; |
1348 | 1351 |
1349 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1352 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |