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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 int32 page_id, | 792 int32 page_id, |
793 const string16& contents, | 793 const string16& contents, |
794 const std::string& language, | 794 const std::string& language, |
795 bool page_translatable); | 795 bool page_translatable); |
796 void OnPageTranslated(int32 page_id, | 796 void OnPageTranslated(int32 page_id, |
797 const std::string& original_lang, | 797 const std::string& original_lang, |
798 const std::string& translated_lang, | 798 const std::string& translated_lang, |
799 TranslateErrors::Type error_type); | 799 TranslateErrors::Type error_type); |
800 void OnSetSuggestions(int32 page_id, | 800 void OnSetSuggestions(int32 page_id, |
801 const std::vector<std::string>& suggestions, | 801 const std::vector<std::string>& suggestions, |
802 InstantCompleteBehavior complete_behavior); | 802 InstantCompleteBehavior behavior); |
803 void OnInstantSupportDetermined(int32 page_id, bool result); | 803 void OnInstantSupportDetermined(int32 page_id, bool result); |
804 void OnRunFileChooser(const ViewHostMsg_RunFileChooser_Params& params); | 804 void OnRunFileChooser(const ViewHostMsg_RunFileChooser_Params& params); |
805 | 805 |
806 // Changes the IsLoading state and notifies delegate as needed | 806 // Changes the IsLoading state and notifies delegate as needed |
807 // |details| is used to provide details on the load that just finished | 807 // |details| is used to provide details on the load that just finished |
808 // (but can be null if not applicable). Can be overridden. | 808 // (but can be null if not applicable). Can be overridden. |
809 void SetIsLoading(bool is_loading, | 809 void SetIsLoading(bool is_loading, |
810 LoadNotificationDetails* details); | 810 LoadNotificationDetails* details); |
811 | 811 |
812 // Adds the incoming |new_contents| to the |blocked_contents_| container. | 812 // Adds the incoming |new_contents| to the |blocked_contents_| container. |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 ObserverList<TabContentsObserver> observers_; | 1255 ObserverList<TabContentsObserver> observers_; |
1256 | 1256 |
1257 // Content restrictions, used to disable print/copy etc based on content's | 1257 // Content restrictions, used to disable print/copy etc based on content's |
1258 // (full-page plugins for now only) permissions. | 1258 // (full-page plugins for now only) permissions. |
1259 int content_restrictions_; | 1259 int content_restrictions_; |
1260 | 1260 |
1261 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1261 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1262 }; | 1262 }; |
1263 | 1263 |
1264 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1264 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |