| 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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <utility> | 13 #include <utility> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 19 #include "content/public/browser/content_browser_client.h" | 19 #include "content/public/browser/content_browser_client.h" |
| 20 #include "extensions/features/features.h" | 20 #include "extensions/features/features.h" |
| 21 #include "media/media_features.h" |
| 21 | 22 |
| 22 class ChromeContentBrowserClientParts; | 23 class ChromeContentBrowserClientParts; |
| 23 | 24 |
| 24 namespace base { | 25 namespace base { |
| 25 class CommandLine; | 26 class CommandLine; |
| 26 } | 27 } |
| 27 | 28 |
| 28 namespace content { | 29 namespace content { |
| 29 class BrowserContext; | 30 class BrowserContext; |
| 30 class QuotaPermissionContext; | 31 class QuotaPermissionContext; |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 void RegisterOutOfProcessServices( | 295 void RegisterOutOfProcessServices( |
| 295 OutOfProcessServiceMap* services) override; | 296 OutOfProcessServiceMap* services) override; |
| 296 std::unique_ptr<base::Value> GetServiceManifestOverlay( | 297 std::unique_ptr<base::Value> GetServiceManifestOverlay( |
| 297 const std::string& name) override; | 298 const std::string& name) override; |
| 298 void OpenURL(content::BrowserContext* browser_context, | 299 void OpenURL(content::BrowserContext* browser_context, |
| 299 const content::OpenURLParams& params, | 300 const content::OpenURLParams& params, |
| 300 const base::Callback<void(content::WebContents*)>& callback) | 301 const base::Callback<void(content::WebContents*)>& callback) |
| 301 override; | 302 override; |
| 302 content::PresentationServiceDelegate* GetPresentationServiceDelegate( | 303 content::PresentationServiceDelegate* GetPresentationServiceDelegate( |
| 303 content::WebContents* web_contents) override; | 304 content::WebContents* web_contents) override; |
| 304 | |
| 305 void RecordURLMetric(const std::string& metric, const GURL& url) override; | 305 void RecordURLMetric(const std::string& metric, const GURL& url) override; |
| 306 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( | 306 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( |
| 307 content::NavigationHandle* handle) override; | 307 content::NavigationHandle* handle) override; |
| 308 std::unique_ptr<content::NavigationUIData> GetNavigationUIData( | 308 std::unique_ptr<content::NavigationUIData> GetNavigationUIData( |
| 309 content::NavigationHandle* navigation_handle) override; | 309 content::NavigationHandle* navigation_handle) override; |
| 310 std::unique_ptr<content::MemoryCoordinatorDelegate> | 310 std::unique_ptr<content::MemoryCoordinatorDelegate> |
| 311 GetMemoryCoordinatorDelegate() override; | 311 GetMemoryCoordinatorDelegate() override; |
| 312 | 312 |
| 313 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) |
| 314 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, |
| 315 media::mojom::RemotingSourcePtr source, |
| 316 media::mojom::RemoterRequest request) final; |
| 317 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) |
| 318 |
| 313 private: | 319 private: |
| 314 friend class DisableWebRtcEncryptionFlagTest; | 320 friend class DisableWebRtcEncryptionFlagTest; |
| 315 | 321 |
| 316 #if defined(ENABLE_WEBRTC) | 322 #if defined(ENABLE_WEBRTC) |
| 317 // Copies disable WebRTC encryption switch depending on the channel. | 323 // Copies disable WebRTC encryption switch depending on the channel. |
| 318 static void MaybeCopyDisableWebRtcEncryptionSwitch( | 324 static void MaybeCopyDisableWebRtcEncryptionSwitch( |
| 319 base::CommandLine* to_command_line, | 325 base::CommandLine* to_command_line, |
| 320 const base::CommandLine& from_command_line, | 326 const base::CommandLine& from_command_line, |
| 321 version_info::Channel channel); | 327 version_info::Channel channel); |
| 322 #endif | 328 #endif |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 // Vector of additional ChromeContentBrowserClientParts. | 361 // Vector of additional ChromeContentBrowserClientParts. |
| 356 // Parts are deleted in the reverse order they are added. | 362 // Parts are deleted in the reverse order they are added. |
| 357 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 363 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
| 358 | 364 |
| 359 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 365 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
| 360 | 366 |
| 361 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 367 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 362 }; | 368 }; |
| 363 | 369 |
| 364 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 370 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |