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

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

Issue 519533002: Initial PlzNavigate RDH-side logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 6 years, 2 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
« no previous file with comments | « content/public/common/resource_response_info.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 class RendererPpapiHost; 76 class RendererPpapiHost;
77 class RenderFrameObserver; 77 class RenderFrameObserver;
78 class RenderViewImpl; 78 class RenderViewImpl;
79 class RenderWidget; 79 class RenderWidget;
80 class RenderWidgetFullscreenPepper; 80 class RenderWidgetFullscreenPepper;
81 class ScreenOrientationDispatcher; 81 class ScreenOrientationDispatcher;
82 class UserMediaClientImpl; 82 class UserMediaClientImpl;
83 struct CommitNavigationParams; 83 struct CommitNavigationParams;
84 struct CommonNavigationParams; 84 struct CommonNavigationParams;
85 struct CustomContextMenuContext; 85 struct CustomContextMenuContext;
86 struct ResourceResponseHead;
86 87
87 class CONTENT_EXPORT RenderFrameImpl 88 class CONTENT_EXPORT RenderFrameImpl
88 : public RenderFrame, 89 : public RenderFrame,
89 NON_EXPORTED_BASE(public blink::WebFrameClient), 90 NON_EXPORTED_BASE(public blink::WebFrameClient),
90 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { 91 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) {
91 public: 92 public:
92 // Creates a new RenderFrame. |render_view| is the RenderView object that this 93 // Creates a new RenderFrame. |render_view| is the RenderView object that this
93 // frame belongs to. 94 // frame belongs to.
94 // Callers *must* call |SetWebFrame| immediately after creation. 95 // Callers *must* call |SetWebFrame| immediately after creation.
95 // Note: This is called only when RenderFrame is created by Blink through 96 // Note: This is called only when RenderFrame is created by Blink through
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 void OnDisownOpener(); 547 void OnDisownOpener();
547 #if defined(OS_ANDROID) 548 #if defined(OS_ANDROID)
548 void OnSelectPopupMenuItems(bool canceled, 549 void OnSelectPopupMenuItems(bool canceled,
549 const std::vector<int>& selected_indices); 550 const std::vector<int>& selected_indices);
550 #elif defined(OS_MACOSX) 551 #elif defined(OS_MACOSX)
551 void OnSelectPopupMenuItem(int selected_index); 552 void OnSelectPopupMenuItem(int selected_index);
552 void OnCopyToFindPboard(); 553 void OnCopyToFindPboard();
553 #endif 554 #endif
554 555
555 // PlzNavigate 556 // PlzNavigate
556 void OnCommitNavigation(const GURL& stream_url, 557 void OnCommitNavigation(const ResourceResponseHead& response,
558 const GURL& stream_url,
557 const CommonNavigationParams& common_params, 559 const CommonNavigationParams& common_params,
558 const CommitNavigationParams& commit_params); 560 const CommitNavigationParams& commit_params);
559 561
560 // Virtual since overridden by WebTestProxy for layout tests. 562 // Virtual since overridden by WebTestProxy for layout tests.
561 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( 563 virtual blink::WebNavigationPolicy DecidePolicyForNavigation(
562 RenderFrame* render_frame, 564 RenderFrame* render_frame,
563 const NavigationPolicyInfo& info); 565 const NavigationPolicyInfo& info);
564 void OpenURL(blink::WebFrame* frame, 566 void OpenURL(blink::WebFrame* frame,
565 const GURL& url, 567 const GURL& url,
566 const Referrer& referrer, 568 const Referrer& referrer,
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 #endif 765 #endif
764 766
765 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 767 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
766 768
767 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 769 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
768 }; 770 };
769 771
770 } // namespace content 772 } // namespace content
771 773
772 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 774 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/common/resource_response_info.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698