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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 // is not running (i.e., it will render "sad tab"). This method is | 693 // is not running (i.e., it will render "sad tab"). This method is |
694 // automatically called from LoadURL. | 694 // automatically called from LoadURL. |
695 // | 695 // |
696 // If you are attaching to an already-existing RenderView, you should call | 696 // If you are attaching to an already-existing RenderView, you should call |
697 // InitWithExistingID. | 697 // InitWithExistingID. |
698 virtual bool CreateRenderViewForRenderManager( | 698 virtual bool CreateRenderViewForRenderManager( |
699 RenderViewHost* render_view_host); | 699 RenderViewHost* render_view_host); |
700 | 700 |
701 // NotificationObserver ------------------------------------------------------ | 701 // NotificationObserver ------------------------------------------------------ |
702 | 702 |
703 virtual void Observe(NotificationType type, | 703 virtual void Observe(int type, |
704 const NotificationSource& source, | 704 const NotificationSource& source, |
705 const NotificationDetails& details); | 705 const NotificationDetails& details); |
706 | 706 |
707 // NetworkChangeNotifier::OnlineStateObserver: | 707 // NetworkChangeNotifier::OnlineStateObserver: |
708 virtual void OnOnlineStateChanged(bool online); | 708 virtual void OnOnlineStateChanged(bool online); |
709 | 709 |
710 // Adds the given window to the list of child windows. The window will notify | 710 // Adds the given window to the list of child windows. The window will notify |
711 // via WillClose() when it is being destroyed. | 711 // via WillClose() when it is being destroyed. |
712 void AddConstrainedDialog(ConstrainedWindow* window); | 712 void AddConstrainedDialog(ConstrainedWindow* window); |
713 | 713 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 ObserverList<TabContentsObserver> observers_; | 835 ObserverList<TabContentsObserver> observers_; |
836 | 836 |
837 // Content restrictions, used to disable print/copy etc based on content's | 837 // Content restrictions, used to disable print/copy etc based on content's |
838 // (full-page plugins for now only) permissions. | 838 // (full-page plugins for now only) permissions. |
839 int content_restrictions_; | 839 int content_restrictions_; |
840 | 840 |
841 DISALLOW_COPY_AND_ASSIGN(TabContents); | 841 DISALLOW_COPY_AND_ASSIGN(TabContents); |
842 }; | 842 }; |
843 | 843 |
844 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 844 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |