Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: chrome/browser/tab_contents/tab_contents.h

Issue 6246007: Generate thumbnails in the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 904
905 // Helper functions for sending notifications. 905 // Helper functions for sending notifications.
906 void NotifySwapped(); 906 void NotifySwapped();
907 void NotifyConnected(); 907 void NotifyConnected();
908 void NotifyDisconnected(); 908 void NotifyDisconnected();
909 909
910 // If params has a searchable form, this tries to create a new keyword. 910 // If params has a searchable form, this tries to create a new keyword.
911 void GenerateKeywordIfNecessary( 911 void GenerateKeywordIfNecessary(
912 const ViewHostMsg_FrameNavigate_Params& params); 912 const ViewHostMsg_FrameNavigate_Params& params);
913 913
914 // Update the thumbnail of the given URL if necessary.
915 void UpdateThumbnailIfNecessary(const GURL& url);
916
914 // TabSpecificContentSettings::Delegate implementation. 917 // TabSpecificContentSettings::Delegate implementation.
915 virtual void OnContentSettingsAccessed(bool content_was_blocked); 918 virtual void OnContentSettingsAccessed(bool content_was_blocked);
916 919
917 // RenderViewHostDelegate ---------------------------------------------------- 920 // RenderViewHostDelegate ----------------------------------------------------
918 921
919 // RenderViewHostDelegate::BrowserIntegration implementation. 922 // RenderViewHostDelegate::BrowserIntegration implementation.
920 virtual void OnUserGesture(); 923 virtual void OnUserGesture();
921 virtual void OnFindReply(int request_id, 924 virtual void OnFindReply(int request_id,
922 int number_of_matches, 925 int number_of_matches,
923 const gfx::Rect& selection_rect, 926 const gfx::Rect& selection_rect,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 const ViewHostMsg_FrameNavigate_Params& params); 976 const ViewHostMsg_FrameNavigate_Params& params);
974 virtual void UpdateState(RenderViewHost* render_view_host, 977 virtual void UpdateState(RenderViewHost* render_view_host,
975 int32 page_id, 978 int32 page_id,
976 const std::string& state); 979 const std::string& state);
977 virtual void UpdateTitle(RenderViewHost* render_view_host, 980 virtual void UpdateTitle(RenderViewHost* render_view_host,
978 int32 page_id, 981 int32 page_id,
979 const std::wstring& title); 982 const std::wstring& title);
980 virtual void UpdateEncoding(RenderViewHost* render_view_host, 983 virtual void UpdateEncoding(RenderViewHost* render_view_host,
981 const std::string& encoding); 984 const std::string& encoding);
982 virtual void UpdateTargetURL(int32 page_id, const GURL& url); 985 virtual void UpdateTargetURL(int32 page_id, const GURL& url);
983 virtual void UpdateThumbnail(const GURL& url,
984 const SkBitmap& bitmap,
985 const ThumbnailScore& score);
986 virtual void UpdateInspectorSetting(const std::string& key, 986 virtual void UpdateInspectorSetting(const std::string& key,
987 const std::string& value); 987 const std::string& value);
988 virtual void ClearInspectorSettings(); 988 virtual void ClearInspectorSettings();
989 virtual void Close(RenderViewHost* render_view_host); 989 virtual void Close(RenderViewHost* render_view_host);
990 virtual void RequestMove(const gfx::Rect& new_bounds); 990 virtual void RequestMove(const gfx::Rect& new_bounds);
991 virtual void DidStartLoading(); 991 virtual void DidStartLoading();
992 virtual void DidStopLoading(); 992 virtual void DidStopLoading();
993 virtual void DidChangeLoadProgress(double progress); 993 virtual void DidChangeLoadProgress(double progress);
994 virtual void DocumentOnLoadCompletedInMainFrame( 994 virtual void DocumentOnLoadCompletedInMainFrame(
995 RenderViewHost* render_view_host, 995 RenderViewHost* render_view_host,
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 // (full-page plugins for now only) permissions. 1343 // (full-page plugins for now only) permissions.
1344 int content_restrictions_; 1344 int content_restrictions_;
1345 1345
1346 // All the IPC message filters for this render view. 1346 // All the IPC message filters for this render view.
1347 std::vector<IPC::Channel::Listener*> message_filters_; 1347 std::vector<IPC::Channel::Listener*> message_filters_;
1348 1348
1349 DISALLOW_COPY_AND_ASSIGN(TabContents); 1349 DISALLOW_COPY_AND_ASSIGN(TabContents);
1350 }; 1350 };
1351 1351
1352 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1352 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698