Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 | 48 |
| 49 namespace blink { | 49 namespace blink { |
| 50 struct WebWindowFeatures; | 50 struct WebWindowFeatures; |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace gfx { | 53 namespace gfx { |
| 54 class ImageSkia; | 54 class ImageSkia; |
| 55 } | 55 } |
| 56 | 56 |
| 57 namespace media { | 57 namespace media { |
| 58 class AudioLogFactory; | |
| 59 class AudioManager; | |
| 58 class CdmFactory; | 60 class CdmFactory; |
| 59 } | 61 } |
| 60 | 62 |
| 61 namespace shell { | 63 namespace shell { |
| 62 class ShellClient; | 64 class ShellClient; |
| 63 } | 65 } |
| 64 | 66 |
| 65 namespace net { | 67 namespace net { |
| 66 class CookieOptions; | 68 class CookieOptions; |
| 67 class NetLog; | 69 class NetLog; |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 698 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} | 700 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} |
| 699 | 701 |
| 700 // Allows the embedder to register one or more NavigationThrottles for the | 702 // Allows the embedder to register one or more NavigationThrottles for the |
| 701 // navigation indicated by |navigation_handle|. A NavigationThrottle is used | 703 // navigation indicated by |navigation_handle|. A NavigationThrottle is used |
| 702 // to control the flow of a navigation on the UI thread. The embedder is | 704 // to control the flow of a navigation on the UI thread. The embedder is |
| 703 // guaranteed that the throttles will be executed in the order they were | 705 // guaranteed that the throttles will be executed in the order they were |
| 704 // provided. | 706 // provided. |
| 705 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation( | 707 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation( |
| 706 NavigationHandle* navigation_handle); | 708 NavigationHandle* navigation_handle); |
| 707 | 709 |
| 710 // Allows the embedder to provide its own AudioManager implementation. | |
| 711 // If this function returns NULL, a default platform implementation will be | |
|
jam
2016/04/25 15:40:47
nit: nullptr
alokp
2016/04/25 16:59:53
Done.
| |
| 712 // used. The caller owns the returned AudioManager instance. | |
| 713 virtual media::AudioManager* CreateAudioManager( | |
|
DaleCurtis
2016/04/22 23:45:06
If caller owns, should return a scoped_ptr?
alokp
2016/04/22 23:54:21
Since we are using ScopedAudioManagerPtr, it would
jam
2016/04/25 15:40:47
it's definitely fine to include headers from "lowe
alokp
2016/04/25 16:59:53
DONE. I had to update DEPS - PTAL.
| |
| 714 media::AudioLogFactory* audio_log_factory); | |
| 708 // Creates and returns a factory used for creating CDM instances for playing | 715 // Creates and returns a factory used for creating CDM instances for playing |
| 709 // protected content. | 716 // protected content. |
| 710 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); | 717 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); |
| 711 | 718 |
| 712 // Populates |mappings| with all files that need to be mapped before launching | 719 // Populates |mappings| with all files that need to be mapped before launching |
| 713 // a child process. | 720 // a child process. |
| 714 #if defined(OS_ANDROID) | 721 #if defined(OS_ANDROID) |
| 715 virtual void GetAdditionalMappedFilesForChildProcess( | 722 virtual void GetAdditionalMappedFilesForChildProcess( |
| 716 const base::CommandLine& command_line, | 723 const base::CommandLine& command_line, |
| 717 int child_process_id, | 724 int child_process_id, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 753 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 760 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 754 // implementation. Return nullptr to disable external surface video. | 761 // implementation. Return nullptr to disable external surface video. |
| 755 virtual ExternalVideoSurfaceContainer* | 762 virtual ExternalVideoSurfaceContainer* |
| 756 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 763 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 757 #endif | 764 #endif |
| 758 }; | 765 }; |
| 759 | 766 |
| 760 } // namespace content | 767 } // namespace content |
| 761 | 768 |
| 762 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 769 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |