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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 208243019: Move SwapOut methods to RenderFrameHost. (Closed) 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move 335 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move
336 // this back to private member. 336 // this back to private member.
337 void OnNavigate(const FrameMsg_Navigate_Params& params); 337 void OnNavigate(const FrameMsg_Navigate_Params& params);
338 338
339 protected: 339 protected:
340 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id); 340 RenderFrameImpl(RenderViewImpl* render_view, int32 routing_id);
341 341
342 private: 342 private:
343 friend class RenderFrameObserver; 343 friend class RenderFrameObserver;
344 FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest, 344 FRIEND_TEST_ALL_PREFIXES(RendererAccessibilityTest,
345 AccessibilityMessagesQueueWhileSwappedOut);
346 FRIEND_TEST_ALL_PREFIXES(RenderFrameImplTest,
345 ShouldUpdateSelectionTextFromContextMenuParams); 347 ShouldUpdateSelectionTextFromContextMenuParams);
348 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut);
349 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK);
346 350
347 typedef std::map<GURL, double> HostZoomLevels; 351 typedef std::map<GURL, double> HostZoomLevels;
348 352
349 // Functions to add and remove observers for this object. 353 // Functions to add and remove observers for this object.
350 void AddObserver(RenderFrameObserver* observer); 354 void AddObserver(RenderFrameObserver* observer);
351 void RemoveObserver(RenderFrameObserver* observer); 355 void RemoveObserver(RenderFrameObserver* observer);
352 356
353 void UpdateURL(blink::WebFrame* frame); 357 void UpdateURL(blink::WebFrame* frame);
354 358
355 // Gets the focused element. If no such element exists then the element will 359 // Gets the focused element. If no such element exists then the element will
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 // always respond properly to the request, so we don't have to worry so 440 // always respond properly to the request, so we don't have to worry so
437 // much about leaks. 441 // much about leaks.
438 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_; 442 IDMap<ContextMenuClient, IDMapExternalPointer> pending_context_menus_;
439 443
440 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 444 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
441 }; 445 };
442 446
443 } // namespace content 447 } // namespace content
444 448
445 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 449 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698