OLD | NEW |
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_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 <string> | 10 #include <string> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // a different type of TabContents (see the TabContents::TypeForURL method), | 66 // a different type of TabContents (see the TabContents::TypeForURL method), |
67 // the NavigationController makes the active TabContents inactive, notifies the | 67 // the NavigationController makes the active TabContents inactive, notifies the |
68 // TabContentsDelegate that the TabContents is being replaced, and then | 68 // TabContentsDelegate that the TabContents is being replaced, and then |
69 // activates the new TabContents. | 69 // activates the new TabContents. |
70 class TabContents : public PageNavigator, | 70 class TabContents : public PageNavigator, |
71 public NotificationObserver { | 71 public NotificationObserver { |
72 public: | 72 public: |
73 // Flags passed to the TabContentsDelegate.NavigationStateChanged to tell it | 73 // Flags passed to the TabContentsDelegate.NavigationStateChanged to tell it |
74 // what has changed. Combine them to update more than one thing. | 74 // what has changed. Combine them to update more than one thing. |
75 enum InvalidateTypes { | 75 enum InvalidateTypes { |
76 INVALIDATE_URL = 1, // The URL has changed. | 76 INVALIDATE_URL = 1, // The URL has changed. |
77 INVALIDATE_TITLE = 2, // The title has changed. | 77 INVALIDATE_TITLE = 2, // The title has changed. |
78 INVALIDATE_FAVICON = 4, // The favicon has changed. | 78 INVALIDATE_FAVICON = 4, // The favicon has changed. |
79 INVALIDATE_LOAD = 8, // The loading state has changed | 79 INVALIDATE_LOAD = 8, // The loading state has changed. |
| 80 INVALIDATE_FEEDLIST = 16, // The Atom/RSS feed has changed. |
80 | 81 |
81 // Helper for forcing a refresh. | 82 // Helper for forcing a refresh. |
82 INVALIDATE_EVERYTHING = 0xFFFFFFFF | 83 INVALIDATE_EVERYTHING = 0xFFFFFFFF |
83 }; | 84 }; |
84 | 85 |
85 static void RegisterUserPrefs(PrefService* prefs); | 86 static void RegisterUserPrefs(PrefService* prefs); |
86 | 87 |
87 // Factory ------------------------------------------------------------------- | 88 // Factory ------------------------------------------------------------------- |
88 // (implemented in tab_contents_factory.cc) | 89 // (implemented in tab_contents_factory.cc) |
89 | 90 |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 // Delegates for InfoBars associated with this TabContents. | 551 // Delegates for InfoBars associated with this TabContents. |
551 std::vector<InfoBarDelegate*> infobar_delegates_; | 552 std::vector<InfoBarDelegate*> infobar_delegates_; |
552 | 553 |
553 // See getter above. | 554 // See getter above. |
554 bool is_being_destroyed_; | 555 bool is_being_destroyed_; |
555 | 556 |
556 DISALLOW_COPY_AND_ASSIGN(TabContents); | 557 DISALLOW_COPY_AND_ASSIGN(TabContents); |
557 }; | 558 }; |
558 | 559 |
559 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 560 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |