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

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

Issue 2948613002: [AudioStreamMonitor] Adds API to collect frame-level audibility. (Closed)
Patch Set: Correct comments in code Created 3 years, 6 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_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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 service_manager::BinderRegistry* GetInterfaceRegistry() override; 175 service_manager::BinderRegistry* GetInterfaceRegistry() override;
176 service_manager::InterfaceProvider* GetRemoteInterfaces() override; 176 service_manager::InterfaceProvider* GetRemoteInterfaces() override;
177 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override; 177 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override;
178 blink::WebPageVisibilityState GetVisibilityState() override; 178 blink::WebPageVisibilityState GetVisibilityState() override;
179 bool IsRenderFrameLive() override; 179 bool IsRenderFrameLive() override;
180 bool IsCurrent() override; 180 bool IsCurrent() override;
181 int GetProxyCount() override; 181 int GetProxyCount() override;
182 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files, 182 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files,
183 FileChooserParams::Mode permissions) override; 183 FileChooserParams::Mode permissions) override;
184 bool HasSelection() override; 184 bool HasSelection() override;
185 bool IsAudible() override;
186 void OnAudioStateChanged(bool audible);
nasko 2017/06/21 21:04:07 Move this method out of the section of RenderFrame
lpy 2017/06/21 22:28:18 Done.
185 void RequestTextSurroundingSelection( 187 void RequestTextSurroundingSelection(
186 const TextSurroundingSelectionCallback& callback, 188 const TextSurroundingSelectionCallback& callback,
187 int max_length) override; 189 int max_length) override;
188 void AllowBindings(int binding_flags) override; 190 void AllowBindings(int binding_flags) override;
189 int GetEnabledBindings() const override; 191 int GetEnabledBindings() const override;
190 void BlockRequestsForFrame() override; 192 void BlockRequestsForFrame() override;
191 void ResumeBlockedRequestsForFrame() override; 193 void ResumeBlockedRequestsForFrame() override;
192 void DisableBeforeUnloadHangMonitorForTesting() override; 194 void DisableBeforeUnloadHangMonitorForTesting() override;
193 bool IsBeforeUnloadHangMonitorDisabledForTesting() override; 195 bool IsBeforeUnloadHangMonitorDisabledForTesting() override;
194 bool IsFeatureEnabled(blink::WebFeaturePolicyFeature feature) override; 196 bool IsFeatureEnabled(blink::WebFeaturePolicyFeature feature) override;
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 std::unique_ptr<WebUIImpl> pending_web_ui_; 1177 std::unique_ptr<WebUIImpl> pending_web_ui_;
1176 WebUI::TypeID pending_web_ui_type_; 1178 WebUI::TypeID pending_web_ui_type_;
1177 1179
1178 // If true the associated WebUI should be reused when CommitPendingWebUI is 1180 // If true the associated WebUI should be reused when CommitPendingWebUI is
1179 // called (no pending instance should be set). 1181 // called (no pending instance should be set).
1180 bool should_reuse_web_ui_; 1182 bool should_reuse_web_ui_;
1181 1183
1182 // If true, then the RenderFrame has selected text. 1184 // If true, then the RenderFrame has selected text.
1183 bool has_selection_; 1185 bool has_selection_;
1184 1186
1187 // If true, then the RenderFrame is playing audio.
1188 bool is_audible_;
1189
1185 // PlzNavigate: The Previews state of the last navigation. This is used during 1190 // PlzNavigate: The Previews state of the last navigation. This is used during
1186 // history navigation of subframes to ensure that subframes navigate with the 1191 // history navigation of subframes to ensure that subframes navigate with the
1187 // same Previews status as the top-level frame. 1192 // same Previews status as the top-level frame.
1188 PreviewsState last_navigation_previews_state_; 1193 PreviewsState last_navigation_previews_state_;
1189 1194
1190 mojo::Binding<mojom::FrameHostInterfaceBroker> 1195 mojo::Binding<mojom::FrameHostInterfaceBroker>
1191 frame_host_interface_broker_binding_; 1196 frame_host_interface_broker_binding_;
1192 mojo::AssociatedBinding<mojom::FrameHost> frame_host_associated_binding_; 1197 mojo::AssociatedBinding<mojom::FrameHost> frame_host_associated_binding_;
1193 mojom::FramePtr frame_; 1198 mojom::FramePtr frame_;
1194 mojom::FrameBindingsControlAssociatedPtr frame_bindings_control_; 1199 mojom::FrameBindingsControlAssociatedPtr frame_bindings_control_;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 1260
1256 // NOTE: This must be the last member. 1261 // NOTE: This must be the last member.
1257 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1262 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1258 1263
1259 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1264 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1260 }; 1265 };
1261 1266
1262 } // namespace content 1267 } // namespace content
1263 1268
1264 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1269 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698