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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 | 905 |
906 // Helper functions for sending notifications. | 906 // Helper functions for sending notifications. |
907 void NotifySwapped(); | 907 void NotifySwapped(); |
908 void NotifyConnected(); | 908 void NotifyConnected(); |
909 void NotifyDisconnected(); | 909 void NotifyDisconnected(); |
910 | 910 |
911 // If params has a searchable form, this tries to create a new keyword. | 911 // If params has a searchable form, this tries to create a new keyword. |
912 void GenerateKeywordIfNecessary( | 912 void GenerateKeywordIfNecessary( |
913 const ViewHostMsg_FrameNavigate_Params& params); | 913 const ViewHostMsg_FrameNavigate_Params& params); |
914 | 914 |
| 915 // Update the thumbnail of the given URL if necessary. |
| 916 void UpdateThumbnailIfNecessary(const GURL& url); |
| 917 |
915 // TabSpecificContentSettings::Delegate implementation. | 918 // TabSpecificContentSettings::Delegate implementation. |
916 virtual void OnContentSettingsAccessed(bool content_was_blocked); | 919 virtual void OnContentSettingsAccessed(bool content_was_blocked); |
917 | 920 |
918 // RenderViewHostDelegate ---------------------------------------------------- | 921 // RenderViewHostDelegate ---------------------------------------------------- |
919 | 922 |
920 // RenderViewHostDelegate::BrowserIntegration implementation. | 923 // RenderViewHostDelegate::BrowserIntegration implementation. |
921 virtual void OnUserGesture(); | 924 virtual void OnUserGesture(); |
922 virtual void OnFindReply(int request_id, | 925 virtual void OnFindReply(int request_id, |
923 int number_of_matches, | 926 int number_of_matches, |
924 const gfx::Rect& selection_rect, | 927 const gfx::Rect& selection_rect, |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1349 // (full-page plugins for now only) permissions. | 1352 // (full-page plugins for now only) permissions. |
1350 int content_restrictions_; | 1353 int content_restrictions_; |
1351 | 1354 |
1352 // All the IPC message filters for this render view. | 1355 // All the IPC message filters for this render view. |
1353 std::vector<IPC::Channel::Listener*> message_filters_; | 1356 std::vector<IPC::Channel::Listener*> message_filters_; |
1354 | 1357 |
1355 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1358 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1356 }; | 1359 }; |
1357 | 1360 |
1358 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1361 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |