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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 178843004: [wip] Add some more state to RenderViewHost's lifetime. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 const std::string& value) OVERRIDE; 232 const std::string& value) OVERRIDE;
233 virtual void Zoom(PageZoom zoom) OVERRIDE; 233 virtual void Zoom(PageZoom zoom) OVERRIDE;
234 virtual void SyncRendererPrefs() OVERRIDE; 234 virtual void SyncRendererPrefs() OVERRIDE;
235 virtual void ToggleSpeechInput() OVERRIDE; 235 virtual void ToggleSpeechInput() OVERRIDE;
236 virtual WebPreferences GetWebkitPreferences() OVERRIDE; 236 virtual WebPreferences GetWebkitPreferences() OVERRIDE;
237 virtual void UpdateWebkitPreferences( 237 virtual void UpdateWebkitPreferences(
238 const WebPreferences& prefs) OVERRIDE; 238 const WebPreferences& prefs) OVERRIDE;
239 virtual void NotifyTimezoneChange() OVERRIDE; 239 virtual void NotifyTimezoneChange() OVERRIDE;
240 virtual void GetAudioOutputControllers( 240 virtual void GetAudioOutputControllers(
241 const GetAudioOutputControllersCallback& callback) const OVERRIDE; 241 const GetAudioOutputControllersCallback& callback) const OVERRIDE;
242 virtual void CopyFromBackingStore(
243 const gfx::Rect& src_rect,
244 const gfx::Size& accelerated_dst_size,
245 const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE;
246
247 void CopyFromBackingStoreCallback(
248 const base::Callback<void(bool, const SkBitmap&)>& callback,
249 bool success,
250 const SkBitmap& bitmap);
242 251
243 #if defined(OS_ANDROID) 252 #if defined(OS_ANDROID)
244 virtual void ActivateNearestFindResult(int request_id, 253 virtual void ActivateNearestFindResult(int request_id,
245 float x, 254 float x,
246 float y) OVERRIDE; 255 float y) OVERRIDE;
247 virtual void RequestFindMatchRects(int current_version) OVERRIDE; 256 virtual void RequestFindMatchRects(int current_version) OVERRIDE;
248 virtual void DisableFullscreenEncryptedMediaPlayback() OVERRIDE; 257 virtual void DisableFullscreenEncryptedMediaPlayback() OVERRIDE;
249 #endif 258 #endif
250 259
251 void set_delegate(RenderViewHostDelegate* d) { 260 void set_delegate(RenderViewHostDelegate* d) {
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 // long to execute, depending on the number of active views in the 760 // long to execute, depending on the number of active views in the
752 // SiteInstance. 761 // SiteInstance.
753 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. 762 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state.
754 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_; 763 scoped_ptr<TimeoutMonitor> unload_event_monitor_timeout_;
755 764
756 // Called after receiving the SwapOutACK when the RVH is in state pending 765 // Called after receiving the SwapOutACK when the RVH is in state pending
757 // shutdown. Also called if the unload timer times out. 766 // shutdown. Also called if the unload timer times out.
758 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state. 767 // TODO(nasko): Move to RenderFrameHost, as this is per-frame state.
759 base::Closure pending_shutdown_on_swap_out_; 768 base::Closure pending_shutdown_on_swap_out_;
760 769
770 int copy_requests_;
771
761 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; 772 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_;
762 773
763 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 774 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
764 }; 775 };
765 776
766 #if defined(COMPILER_MSVC) 777 #if defined(COMPILER_MSVC)
767 #pragma warning(pop) 778 #pragma warning(pop)
768 #endif 779 #endif
769 780
770 } // namespace content 781 } // namespace content
771 782
772 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 783 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698