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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 871443004: Expose the visibility state of a frame to the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rfh_isfocused
Patch Set: remove from RFH Created 5 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 // camera. Note that this does not query the user. |type| must be 581 // camera. Note that this does not query the user. |type| must be
582 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. 582 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE.
583 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, 583 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context,
584 const GURL& security_origin, 584 const GURL& security_origin,
585 MediaStreamType type); 585 MediaStreamType type);
586 586
587 // Allows to override browser Mojo services exposed through the 587 // Allows to override browser Mojo services exposed through the
588 // RenderProcessHost. 588 // RenderProcessHost.
589 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} 589 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {}
590 590
591 // Return whether the given a given frame is being prerendered.
592 virtual bool IsPrerendering(RenderFrameHost* render_frame_host);
Charlie Reis 2015/01/22 21:03:55 Prerendering is not a concept in content/, so we s
mlamouri (slow - plz ping) 2015/01/23 12:32:58 Oh, ok. I was wondering why ContentRenderClient wa
593
591 #if defined(OS_POSIX) && !defined(OS_MACOSX) 594 #if defined(OS_POSIX) && !defined(OS_MACOSX)
592 // Populates |mappings| with all files that need to be mapped before launching 595 // Populates |mappings| with all files that need to be mapped before launching
593 // a child process. 596 // a child process.
594 virtual void GetAdditionalMappedFilesForChildProcess( 597 virtual void GetAdditionalMappedFilesForChildProcess(
595 const base::CommandLine& command_line, 598 const base::CommandLine& command_line,
596 int child_process_id, 599 int child_process_id,
597 FileDescriptorInfo* mappings) {} 600 FileDescriptorInfo* mappings) {}
598 #endif 601 #endif
599 602
600 #if defined(OS_WIN) 603 #if defined(OS_WIN)
(...skipping 11 matching lines...) Expand all
612 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 615 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
613 // implementation. Return nullptr to disable external surface video. 616 // implementation. Return nullptr to disable external surface video.
614 virtual ExternalVideoSurfaceContainer* 617 virtual ExternalVideoSurfaceContainer*
615 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 618 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
616 #endif 619 #endif
617 }; 620 };
618 621
619 } // namespace content 622 } // namespace content
620 623
621 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 624 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698