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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2426503002: Make printing work better with OOPIF. (Closed)
Patch Set: rebase, many cleanups have been committed Created 4 years, 1 month 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 void SaveImageAt(int x, int y) override; 155 void SaveImageAt(int x, int y) override;
156 RenderViewHost* GetRenderViewHost() override; 156 RenderViewHost* GetRenderViewHost() override;
157 service_manager::InterfaceRegistry* GetInterfaceRegistry() override; 157 service_manager::InterfaceRegistry* GetInterfaceRegistry() override;
158 service_manager::InterfaceProvider* GetRemoteInterfaces() override; 158 service_manager::InterfaceProvider* GetRemoteInterfaces() override;
159 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override; 159 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override;
160 blink::WebPageVisibilityState GetVisibilityState() override; 160 blink::WebPageVisibilityState GetVisibilityState() override;
161 bool IsRenderFrameLive() override; 161 bool IsRenderFrameLive() override;
162 int GetProxyCount() override; 162 int GetProxyCount() override;
163 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files, 163 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files,
164 FileChooserParams::Mode permissions) override; 164 FileChooserParams::Mode permissions) override;
165 bool HasSelection() override;
165 void RequestTextSurroundingSelection( 166 void RequestTextSurroundingSelection(
166 const TextSurroundingSelectionCallback& callback, 167 const TextSurroundingSelectionCallback& callback,
167 int max_length) override; 168 int max_length) override;
168 169
169 // mojom::FrameHost 170 // mojom::FrameHost
170 void GetInterfaceProvider( 171 void GetInterfaceProvider(
171 service_manager::mojom::InterfaceProviderRequest interfaces) override; 172 service_manager::mojom::InterfaceProviderRequest interfaces) override;
172 173
173 // IPC::Sender 174 // IPC::Sender
174 bool Send(IPC::Message* msg) override; 175 bool Send(IPC::Message* msg) override;
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 // The pending WebUIImpl and its type. These values will be used exclusively 1024 // The pending WebUIImpl and its type. These values will be used exclusively
1024 // for same-site navigations to keep a transition of a WebUI in a pending 1025 // for same-site navigations to keep a transition of a WebUI in a pending
1025 // state until the navigation commits. 1026 // state until the navigation commits.
1026 std::unique_ptr<WebUIImpl> pending_web_ui_; 1027 std::unique_ptr<WebUIImpl> pending_web_ui_;
1027 WebUI::TypeID pending_web_ui_type_; 1028 WebUI::TypeID pending_web_ui_type_;
1028 1029
1029 // If true the associated WebUI should be reused when CommitPendingWebUI is 1030 // If true the associated WebUI should be reused when CommitPendingWebUI is
1030 // called (no pending instance should be set). 1031 // called (no pending instance should be set).
1031 bool should_reuse_web_ui_; 1032 bool should_reuse_web_ui_;
1032 1033
1034 // If true, then the RenderFrame has selected text.
1035 bool has_selection_;
1036
1033 // PlzNavigate: The LoFi state of the last navigation. This is used during 1037 // PlzNavigate: The LoFi state of the last navigation. This is used during
1034 // history navigation of subframes to ensure that subframes navigate with the 1038 // history navigation of subframes to ensure that subframes navigate with the
1035 // same LoFi status as the top-level frame. 1039 // same LoFi status as the top-level frame.
1036 LoFiState last_navigation_lofi_state_; 1040 LoFiState last_navigation_lofi_state_;
1037 1041
1038 mojo::Binding<mojom::FrameHost> frame_host_binding_; 1042 mojo::Binding<mojom::FrameHost> frame_host_binding_;
1039 mojom::FramePtr frame_; 1043 mojom::FramePtr frame_;
1040 1044
1041 // If this is true then this object was created in response to a renderer 1045 // If this is true then this object was created in response to a renderer
1042 // initiated request. Init() will be called, and until then navigation 1046 // initiated request. Init() will be called, and until then navigation
(...skipping 15 matching lines...) Expand all
1058 remote_associated_interfaces_; 1062 remote_associated_interfaces_;
1059 // NOTE: This must be the last member. 1063 // NOTE: This must be the last member.
1060 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1064 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1061 1065
1062 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1066 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1063 }; 1067 };
1064 1068
1065 } // namespace content 1069 } // namespace content
1066 1070
1067 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1071 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698