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

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

Issue 1449353002: OOPIF: Set timer for per-frame UpdateState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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 | « no previous file | 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 // more. 610 // more.
611 void SetPendingNavigationParams( 611 void SetPendingNavigationParams(
612 scoped_ptr<NavigationParams> navigation_params); 612 scoped_ptr<NavigationParams> navigation_params);
613 613
614 // Expose MediaPermission to the non-UI threads. Any calls to this will be 614 // Expose MediaPermission to the non-UI threads. Any calls to this will be
615 // redirected to |media_permission_dispatcher_| on UI thread and have the 615 // redirected to |media_permission_dispatcher_| on UI thread and have the
616 // callback called on |caller_task_runner|. 616 // callback called on |caller_task_runner|.
617 scoped_ptr<media::MediaPermission> CreateMediaPermissionProxy( 617 scoped_ptr<media::MediaPermission> CreateMediaPermissionProxy(
618 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner); 618 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner);
619 619
620 // Sends the current frame's navigation state to the browser.
621 void SendUpdateState();
622
620 protected: 623 protected:
621 explicit RenderFrameImpl(const CreateParams& params); 624 explicit RenderFrameImpl(const CreateParams& params);
622 625
623 private: 626 private:
624 friend class RenderFrameImplTest; 627 friend class RenderFrameImplTest;
625 friend class RenderFrameObserver; 628 friend class RenderFrameObserver;
626 friend class RendererAccessibilityTest; 629 friend class RendererAccessibilityTest;
627 friend class TestRenderFrame; 630 friend class TestRenderFrame;
628 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); 631 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem);
629 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); 632 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange);
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 // PlzNavigate 840 // PlzNavigate
838 // Sends a FrameHostMsg_BeginNavigation to the browser based on the contents 841 // Sends a FrameHostMsg_BeginNavigation to the browser based on the contents
839 // of the WebURLRequest. 842 // of the WebURLRequest.
840 void BeginNavigation(blink::WebURLRequest* request); 843 void BeginNavigation(blink::WebURLRequest* request);
841 844
842 // Loads a data url. 845 // Loads a data url.
843 void LoadDataURL(const CommonNavigationParams& params, 846 void LoadDataURL(const CommonNavigationParams& params,
844 blink::WebFrame* frame, 847 blink::WebFrame* frame,
845 blink::WebFrameLoadType load_type); 848 blink::WebFrameLoadType load_type);
846 849
847 // Sends the current frame's navigation state to the browser.
848 void SendUpdateState();
849
850 // Sends a proper FrameHostMsg_DidFailProvisionalLoadWithError_Params IPC for 850 // Sends a proper FrameHostMsg_DidFailProvisionalLoadWithError_Params IPC for
851 // the failed request |request|. 851 // the failed request |request|.
852 void SendFailedProvisionalLoad(const blink::WebURLRequest& request, 852 void SendFailedProvisionalLoad(const blink::WebURLRequest& request,
853 const blink::WebURLError& error, 853 const blink::WebURLError& error,
854 blink::WebLocalFrame* frame); 854 blink::WebLocalFrame* frame);
855 855
856 bool ShouldDisplayErrorPageForFailedLoad(int error_code, 856 bool ShouldDisplayErrorPageForFailedLoad(int error_code,
857 const GURL& unreachable_url); 857 const GURL& unreachable_url);
858 858
859 // Returns the URL being loaded by the |frame_|'s request. 859 // Returns the URL being loaded by the |frame_|'s request.
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 #endif 1103 #endif
1104 1104
1105 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1105 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1106 1106
1107 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1107 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1108 }; 1108 };
1109 1109
1110 } // namespace content 1110 } // namespace content
1111 1111
1112 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1112 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698