OLD | NEW |
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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, NoJSMessageOnInterstitials); | 573 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, NoJSMessageOnInterstitials); |
574 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, UpdateTitle); | 574 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, UpdateTitle); |
575 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, CrossSiteCantPreemptAfterUnload); | 575 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, CrossSiteCantPreemptAfterUnload); |
576 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, ConstrainedWindows); | 576 FRIEND_TEST_ALL_PREFIXES(TabContentsTest, ConstrainedWindows); |
577 FRIEND_TEST_ALL_PREFIXES(FormStructureBrowserTest, HTMLFiles); | 577 FRIEND_TEST_ALL_PREFIXES(FormStructureBrowserTest, HTMLFiles); |
578 FRIEND_TEST_ALL_PREFIXES(NavigationControllerTest, HistoryNavigate); | 578 FRIEND_TEST_ALL_PREFIXES(NavigationControllerTest, HistoryNavigate); |
579 FRIEND_TEST_ALL_PREFIXES(RenderViewHostManagerTest, PageDoesBackAndReload); | 579 FRIEND_TEST_ALL_PREFIXES(RenderViewHostManagerTest, PageDoesBackAndReload); |
580 | 580 |
581 // Temporary until the view/contents separation is complete. | 581 // Temporary until the view/contents separation is complete. |
582 friend class TabContentsView; | 582 friend class TabContentsView; |
583 #if defined(OS_WIN) | 583 #if defined(TOOLKIT_VIEWS) |
584 friend class TabContentsViewViews; | 584 friend class TabContentsViewViews; |
585 #elif defined(OS_MACOSX) | 585 #elif defined(OS_MACOSX) |
586 friend class TabContentsViewMac; | 586 friend class TabContentsViewMac; |
587 #elif defined(TOOLKIT_USES_GTK) | 587 #elif defined(TOOLKIT_USES_GTK) |
588 friend class TabContentsViewGtk; | 588 friend class TabContentsViewGtk; |
589 #endif | 589 #endif |
590 | 590 |
591 // So InterstitialPage can access SetIsLoading. | 591 // So InterstitialPage can access SetIsLoading. |
592 friend class InterstitialPage; | 592 friend class InterstitialPage; |
593 | 593 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
975 ObserverList<TabContentsObserver> observers_; | 975 ObserverList<TabContentsObserver> observers_; |
976 | 976 |
977 // Content restrictions, used to disable print/copy etc based on content's | 977 // Content restrictions, used to disable print/copy etc based on content's |
978 // (full-page plugins for now only) permissions. | 978 // (full-page plugins for now only) permissions. |
979 int content_restrictions_; | 979 int content_restrictions_; |
980 | 980 |
981 DISALLOW_COPY_AND_ASSIGN(TabContents); | 981 DISALLOW_COPY_AND_ASSIGN(TabContents); |
982 }; | 982 }; |
983 | 983 |
984 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 984 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |