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

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

Issue 135723003: Move DidCommitProvisionalLoad code from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some clean up, ready to start reviewing. Created 6 years, 10 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 #endif 411 #endif
412 412
413 // User rotated the screen. Calls the "onorientationchange" Javascript hook. 413 // User rotated the screen. Calls the "onorientationchange" Javascript hook.
414 void SendOrientationChangeEvent(int orientation); 414 void SendOrientationChangeEvent(int orientation);
415 415
416 // TODO(creis): Remove this when we replace frame IDs with RenderFrameHost 416 // TODO(creis): Remove this when we replace frame IDs with RenderFrameHost
417 // routing IDs. 417 // routing IDs.
418 int64 main_frame_id() const { 418 int64 main_frame_id() const {
419 return main_frame_id_; 419 return main_frame_id_;
420 } 420 }
421 int main_frame_routing_id() const {
422 return main_frame_routing_id_;
423 }
421 424
422 // Set the opener to null in the renderer process. 425 // Set the opener to null in the renderer process.
423 void DisownOpener(); 426 void DisownOpener();
424 427
425 // Turn on accessibility testing. The given callback will be run 428 // Turn on accessibility testing. The given callback will be run
426 // every time an accessibility notification is received from the 429 // every time an accessibility notification is received from the
427 // renderer process, and the accessibility tree it sent can be 430 // renderer process, and the accessibility tree it sent can be
428 // retrieved using accessibility_tree_for_testing(). 431 // retrieved using accessibility_tree_for_testing().
429 void SetAccessibilityCallbackForTesting( 432 void SetAccessibilityCallbackForTesting(
430 const base::Callback<void(ui::AXEvent)>& callback); 433 const base::Callback<void(ui::AXEvent)>& callback);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 587
585 #if defined(OS_MACOSX) || defined(OS_ANDROID) 588 #if defined(OS_MACOSX) || defined(OS_ANDROID)
586 void OnShowPopup(const ViewHostMsg_ShowPopup_Params& params); 589 void OnShowPopup(const ViewHostMsg_ShowPopup_Params& params);
587 #endif 590 #endif
588 591
589 private: 592 private:
590 friend class TestRenderViewHost; 593 friend class TestRenderViewHost;
591 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, BasicRenderFrameHost); 594 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, BasicRenderFrameHost);
592 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, RoutingIdSane); 595 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, RoutingIdSane);
593 596
597 // TODO(nasko): Temporarily friend RenderFrameHostImpl, so we don't duplicate
598 // utility functions and state needed in both classes, while we move frame
599 // specific code away from this class.
600 friend class RenderFrameHostImpl;
Charlie Reis 2014/02/05 23:30:37 nit: Please move above line 593.
nasko 2014/02/06 01:55:13 Done.
601
594 // Sets whether this RenderViewHost is swapped out in favor of another, 602 // Sets whether this RenderViewHost is swapped out in favor of another,
595 // and clears any waiting state that is no longer relevant. 603 // and clears any waiting state that is no longer relevant.
596 void SetSwappedOut(bool is_swapped_out); 604 void SetSwappedOut(bool is_swapped_out);
597 605
598 bool CanAccessFilesOfPageState(const PageState& state) const; 606 bool CanAccessFilesOfPageState(const PageState& state) const;
599 607
600 // Our delegate, which wants to know about changes in the RenderView. 608 // Our delegate, which wants to know about changes in the RenderView.
601 RenderViewHostDelegate* delegate_; 609 RenderViewHostDelegate* delegate_;
602 610
603 // The SiteInstance associated with this RenderViewHost. All pages drawn 611 // The SiteInstance associated with this RenderViewHost. All pages drawn
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 711 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
704 }; 712 };
705 713
706 #if defined(COMPILER_MSVC) 714 #if defined(COMPILER_MSVC)
707 #pragma warning(pop) 715 #pragma warning(pop)
708 #endif 716 #endif
709 717
710 } // namespace content 718 } // namespace content
711 719
712 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 720 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698