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

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

Issue 1257553002: [Proof-of-concept] PlzNavigate and Service Worker Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass navigation_provider_id Created 5 years, 4 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
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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 void OnSelectPopupMenuItems(bool canceled, 685 void OnSelectPopupMenuItems(bool canceled,
686 const std::vector<int>& selected_indices); 686 const std::vector<int>& selected_indices);
687 #elif defined(OS_MACOSX) 687 #elif defined(OS_MACOSX)
688 void OnSelectPopupMenuItem(int selected_index); 688 void OnSelectPopupMenuItem(int selected_index);
689 void OnCopyToFindPboard(); 689 void OnCopyToFindPboard();
690 #endif 690 #endif
691 691
692 void OnCommitNavigation(const ResourceResponseHead& response, 692 void OnCommitNavigation(const ResourceResponseHead& response,
693 const GURL& stream_url, 693 const GURL& stream_url,
694 const CommonNavigationParams& common_params, 694 const CommonNavigationParams& common_params,
695 const RequestNavigationParams& request_params); 695 const RequestNavigationParams& request_params,
696 int navigation_provider_id);
696 void OnFailedNavigation(const CommonNavigationParams& common_params, 697 void OnFailedNavigation(const CommonNavigationParams& common_params,
697 const RequestNavigationParams& request_params, 698 const RequestNavigationParams& request_params,
698 bool has_stale_copy_in_cache, 699 bool has_stale_copy_in_cache,
699 int error_code); 700 int error_code);
700 701
701 // Virtual since overridden by WebTestProxy for layout tests. 702 // Virtual since overridden by WebTestProxy for layout tests.
702 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( 703 virtual blink::WebNavigationPolicy DecidePolicyForNavigation(
703 RenderFrame* render_frame, 704 RenderFrame* render_frame,
704 const NavigationPolicyInfo& info); 705 const NavigationPolicyInfo& info);
705 void OpenURL(blink::WebFrame* frame, 706 void OpenURL(blink::WebFrame* frame,
706 const GURL& url, 707 const GURL& url,
707 const Referrer& referrer, 708 const Referrer& referrer,
708 blink::WebNavigationPolicy policy); 709 blink::WebNavigationPolicy policy);
709 710
710 // Performs a navigation in the frame. This provides a unified function for 711 // Performs a navigation in the frame. This provides a unified function for
711 // the current code path and the browser-side navigation path (in 712 // the current code path and the browser-side navigation path (in
712 // development). Currently used by OnNavigate, with all *NavigationParams 713 // development). Currently used by OnNavigate, with all *NavigationParams
713 // provided by the browser. |stream_params| should be null. 714 // provided by the browser. |stream_params| should be null.
714 // PlzNavigate: used by OnCommitNavigation, with |common_params| and 715 // PlzNavigate: used by OnCommitNavigation, with |common_params| and
715 // |request_params| received by the browser. |stream_params| should be non 716 // |request_params| received by the browser. |stream_params| should be non
716 // null and created from the information provided by the browser. 717 // null and created from the information provided by the browser.
717 // |start_params| is not used. 718 // |start_params| is not used.
718 void NavigateInternal(const CommonNavigationParams& common_params, 719 void NavigateInternal(const CommonNavigationParams& common_params,
719 const StartNavigationParams& start_params, 720 const StartNavigationParams& start_params,
720 const RequestNavigationParams& request_params, 721 const RequestNavigationParams& request_params,
721 scoped_ptr<StreamOverrideParameters> stream_params); 722 scoped_ptr<StreamOverrideParameters> stream_params,
723 int navigation_provider_id);
722 724
723 // Update current main frame's encoding and send it to browser window. 725 // Update current main frame's encoding and send it to browser window.
724 // Since we want to let users see the right encoding info from menu 726 // Since we want to let users see the right encoding info from menu
725 // before finishing loading, we call the UpdateEncoding in 727 // before finishing loading, we call the UpdateEncoding in
726 // a) function:DidCommitLoadForFrame. When this function is called, 728 // a) function:DidCommitLoadForFrame. When this function is called,
727 // that means we have got first data. In here we try to get encoding 729 // that means we have got first data. In here we try to get encoding
728 // of page if it has been specified in http header. 730 // of page if it has been specified in http header.
729 // b) function:DidReceiveTitle. When this function is called, 731 // b) function:DidReceiveTitle. When this function is called,
730 // that means we have got specified title. Because in most of webpages, 732 // that means we have got specified title. Because in most of webpages,
731 // title tags will follow meta tags. In here we try to get encoding of 733 // title tags will follow meta tags. In here we try to get encoding of
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 #endif 1016 #endif
1015 1017
1016 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1018 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1017 1019
1018 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1020 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1019 }; 1021 };
1020 1022
1021 } // namespace content 1023 } // namespace content
1022 1024
1023 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1025 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698