| 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 int content_restrictions() const { return content_restrictions_; } | 485 int content_restrictions() const { return content_restrictions_; } |
| 486 void SetContentRestrictions(int restrictions); | 486 void SetContentRestrictions(int restrictions); |
| 487 | 487 |
| 488 // Query the WebUIFactory for the TypeID for the current URL. | 488 // Query the WebUIFactory for the TypeID for the current URL. |
| 489 WebUI::TypeID GetWebUITypeForCurrentState(); | 489 WebUI::TypeID GetWebUITypeForCurrentState(); |
| 490 | 490 |
| 491 // Returns the WebUI for the current state of the tab. This will either be | 491 // Returns the WebUI for the current state of the tab. This will either be |
| 492 // the pending WebUI, the committed WebUI, or NULL. | 492 // the pending WebUI, the committed WebUI, or NULL. |
| 493 WebUI* GetWebUIForCurrentState(); | 493 WebUI* GetWebUIForCurrentState(); |
| 494 | 494 |
| 495 | |
| 496 protected: | 495 protected: |
| 497 friend class TabContentsObserver; | 496 friend class TabContentsObserver; |
| 498 friend class TabContentsObserver::Registrar; | 497 friend class TabContentsObserver::Registrar; |
| 499 | 498 |
| 500 // Add and remove observers for page navigation notifications. Adding or | 499 // Add and remove observers for page navigation notifications. Adding or |
| 501 // removing multiple times has no effect. The order in which notifications | 500 // removing multiple times has no effect. The order in which notifications |
| 502 // are sent to observers is undefined. Clients must be sure to remove the | 501 // are sent to observers is undefined. Clients must be sure to remove the |
| 503 // observer before they go away. | 502 // observer before they go away. |
| 504 void AddObserver(TabContentsObserver* observer); | 503 void AddObserver(TabContentsObserver* observer); |
| 505 void RemoveObserver(TabContentsObserver* observer); | 504 void RemoveObserver(TabContentsObserver* observer); |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 867 ObserverList<TabContentsObserver> observers_; | 866 ObserverList<TabContentsObserver> observers_; |
| 868 | 867 |
| 869 // Content restrictions, used to disable print/copy etc based on content's | 868 // Content restrictions, used to disable print/copy etc based on content's |
| 870 // (full-page plugins for now only) permissions. | 869 // (full-page plugins for now only) permissions. |
| 871 int content_restrictions_; | 870 int content_restrictions_; |
| 872 | 871 |
| 873 DISALLOW_COPY_AND_ASSIGN(TabContents); | 872 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 874 }; | 873 }; |
| 875 | 874 |
| 876 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 875 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |