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/callback.h" | 16 #include "base/callback.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
21 #include "content/public/browser/content_browser_client.h" | 21 #include "content/public/browser/content_browser_client.h" |
| 22 #include "content/public/common/network_service.mojom.h" |
22 #include "extensions/features/features.h" | 23 #include "extensions/features/features.h" |
23 #include "media/media_features.h" | 24 #include "media/media_features.h" |
24 #include "ppapi/features/features.h" | 25 #include "ppapi/features/features.h" |
25 #include "services/service_manager/public/cpp/binder_registry.h" | 26 #include "services/service_manager/public/cpp/binder_registry.h" |
26 | 27 |
27 class ChromeContentBrowserClientParts; | 28 class ChromeContentBrowserClientParts; |
28 | 29 |
29 namespace base { | 30 namespace base { |
30 class CommandLine; | 31 class CommandLine; |
31 } | 32 } |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 content::WebContents* web_contents) override; | 313 content::WebContents* web_contents) override; |
313 void RecordURLMetric(const std::string& metric, const GURL& url) override; | 314 void RecordURLMetric(const std::string& metric, const GURL& url) override; |
314 std::string GetMetricSuffixForURL(const GURL& url) override; | 315 std::string GetMetricSuffixForURL(const GURL& url) override; |
315 std::vector<std::unique_ptr<content::NavigationThrottle>> | 316 std::vector<std::unique_ptr<content::NavigationThrottle>> |
316 CreateThrottlesForNavigation(content::NavigationHandle* handle) override; | 317 CreateThrottlesForNavigation(content::NavigationHandle* handle) override; |
317 std::unique_ptr<content::NavigationUIData> GetNavigationUIData( | 318 std::unique_ptr<content::NavigationUIData> GetNavigationUIData( |
318 content::NavigationHandle* navigation_handle) override; | 319 content::NavigationHandle* navigation_handle) override; |
319 std::unique_ptr<content::MemoryCoordinatorDelegate> | 320 std::unique_ptr<content::MemoryCoordinatorDelegate> |
320 GetMemoryCoordinatorDelegate() override; | 321 GetMemoryCoordinatorDelegate() override; |
321 ::rappor::RapporService* GetRapporService() override; | 322 ::rappor::RapporService* GetRapporService() override; |
| 323 content::mojom::NetworkContextPtr CreateMainNetworkContext( |
| 324 content::BrowserContext* context) override; |
| 325 content::mojom::NetworkContextPtr CreateNetworkContextForStoragePartition( |
| 326 content::BrowserContext* context, |
| 327 bool in_memory, |
| 328 const base::FilePath& partition_path) override; |
322 | 329 |
323 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) | 330 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) |
324 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, | 331 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, |
325 media::mojom::RemotingSourcePtr source, | 332 media::mojom::RemotingSourcePtr source, |
326 media::mojom::RemoterRequest request) final; | 333 media::mojom::RemoterRequest request) final; |
327 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) | 334 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) |
328 | 335 |
329 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams() | 336 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams() |
330 override; | 337 override; |
331 base::FilePath GetLoggingFileName() override; | 338 base::FilePath GetLoggingFileName() override; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 std::unique_ptr< | 408 std::unique_ptr< |
402 service_manager::BinderRegistryWithParams<content::RenderFrameHost*>> | 409 service_manager::BinderRegistryWithParams<content::RenderFrameHost*>> |
403 frame_interfaces_parameterized_; | 410 frame_interfaces_parameterized_; |
404 | 411 |
405 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 412 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
406 | 413 |
407 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 414 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
408 }; | 415 }; |
409 | 416 |
410 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 417 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |