| 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 void OnInstallApplication(const WebApplicationInfo& info); | 784 void OnInstallApplication(const WebApplicationInfo& info); |
| 785 void OnPageContents(const GURL& url, | 785 void OnPageContents(const GURL& url, |
| 786 int32 page_id, | 786 int32 page_id, |
| 787 const string16& contents, | 787 const string16& contents, |
| 788 const std::string& language, | 788 const std::string& language, |
| 789 bool page_translatable); | 789 bool page_translatable); |
| 790 void OnPageTranslated(int32 page_id, | 790 void OnPageTranslated(int32 page_id, |
| 791 const std::string& original_lang, | 791 const std::string& original_lang, |
| 792 const std::string& translated_lang, | 792 const std::string& translated_lang, |
| 793 TranslateErrors::Type error_type); | 793 TranslateErrors::Type error_type); |
| 794 void OnRegisterProtocolHandler(const std::string& protocol, |
| 795 const GURL& url, |
| 796 const string16& title); |
| 794 void OnSetSuggestions(int32 page_id, | 797 void OnSetSuggestions(int32 page_id, |
| 795 const std::vector<std::string>& suggestions); | 798 const std::vector<std::string>& suggestions); |
| 796 void OnInstantSupportDetermined(int32 page_id, bool result); | 799 void OnInstantSupportDetermined(int32 page_id, bool result); |
| 797 void OnRunFileChooser(const ViewHostMsg_RunFileChooser_Params& params); | 800 void OnRunFileChooser(const ViewHostMsg_RunFileChooser_Params& params); |
| 798 | 801 |
| 799 // Changes the IsLoading state and notifies delegate as needed | 802 // Changes the IsLoading state and notifies delegate as needed |
| 800 // |details| is used to provide details on the load that just finished | 803 // |details| is used to provide details on the load that just finished |
| 801 // (but can be null if not applicable). Can be overridden. | 804 // (but can be null if not applicable). Can be overridden. |
| 802 void SetIsLoading(bool is_loading, | 805 void SetIsLoading(bool is_loading, |
| 803 LoadNotificationDetails* details); | 806 LoadNotificationDetails* details); |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 ObserverList<TabContentsObserver> observers_; | 1252 ObserverList<TabContentsObserver> observers_; |
| 1250 | 1253 |
| 1251 // Content restrictions, used to disable print/copy etc based on content's | 1254 // Content restrictions, used to disable print/copy etc based on content's |
| 1252 // (full-page plugins for now only) permissions. | 1255 // (full-page plugins for now only) permissions. |
| 1253 int content_restrictions_; | 1256 int content_restrictions_; |
| 1254 | 1257 |
| 1255 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1258 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1256 }; | 1259 }; |
| 1257 | 1260 |
| 1258 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1261 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |