| 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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 void OnDidRunInsecureContent(const std::string& security_origin, | 561 void OnDidRunInsecureContent(const std::string& security_origin, |
| 562 const GURL& target_url); | 562 const GURL& target_url); |
| 563 void OnDocumentLoadedInFrame(int64 frame_id); | 563 void OnDocumentLoadedInFrame(int64 frame_id); |
| 564 void OnDidFinishLoad(int64 frame_id); | 564 void OnDidFinishLoad(int64 frame_id); |
| 565 void OnUpdateContentRestrictions(int restrictions); | 565 void OnUpdateContentRestrictions(int restrictions); |
| 566 void OnGoToEntryAtOffset(int offset); | 566 void OnGoToEntryAtOffset(int offset); |
| 567 void OnUpdateZoomLimits(int minimum_percent, | 567 void OnUpdateZoomLimits(int minimum_percent, |
| 568 int maximum_percent, | 568 int maximum_percent, |
| 569 bool remember); | 569 bool remember); |
| 570 void OnFocusedNodeChanged(bool is_editable_node); | 570 void OnFocusedNodeChanged(bool is_editable_node); |
| 571 void OffsetAndPruneHistory(int offset); |
| 571 | 572 |
| 572 // Changes the IsLoading state and notifies delegate as needed | 573 // Changes the IsLoading state and notifies delegate as needed |
| 573 // |details| is used to provide details on the load that just finished | 574 // |details| is used to provide details on the load that just finished |
| 574 // (but can be null if not applicable). Can be overridden. | 575 // (but can be null if not applicable). Can be overridden. |
| 575 void SetIsLoading(bool is_loading, | 576 void SetIsLoading(bool is_loading, |
| 576 LoadNotificationDetails* details); | 577 LoadNotificationDetails* details); |
| 577 | 578 |
| 578 // Called by derived classes to indicate that we're no longer waiting for a | 579 // Called by derived classes to indicate that we're no longer waiting for a |
| 579 // response. This won't actually update the throbber, but it will get picked | 580 // response. This won't actually update the throbber, but it will get picked |
| 580 // up at the next animation step if the throbber is going. | 581 // up at the next animation step if the throbber is going. |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 ObserverList<TabContentsObserver> observers_; | 859 ObserverList<TabContentsObserver> observers_; |
| 859 | 860 |
| 860 // Content restrictions, used to disable print/copy etc based on content's | 861 // Content restrictions, used to disable print/copy etc based on content's |
| 861 // (full-page plugins for now only) permissions. | 862 // (full-page plugins for now only) permissions. |
| 862 int content_restrictions_; | 863 int content_restrictions_; |
| 863 | 864 |
| 864 DISALLOW_COPY_AND_ASSIGN(TabContents); | 865 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 865 }; | 866 }; |
| 866 | 867 |
| 867 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 868 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |