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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 content::WebContents* web_contents) override; | 314 content::WebContents* web_contents) override; |
314 void RecordURLMetric(const std::string& metric, const GURL& url) override; | 315 void RecordURLMetric(const std::string& metric, const GURL& url) override; |
315 std::string GetMetricSuffixForURL(const GURL& url) override; | 316 std::string GetMetricSuffixForURL(const GURL& url) override; |
316 std::vector<std::unique_ptr<content::NavigationThrottle>> | 317 std::vector<std::unique_ptr<content::NavigationThrottle>> |
317 CreateThrottlesForNavigation(content::NavigationHandle* handle) override; | 318 CreateThrottlesForNavigation(content::NavigationHandle* handle) override; |
318 std::unique_ptr<content::NavigationUIData> GetNavigationUIData( | 319 std::unique_ptr<content::NavigationUIData> GetNavigationUIData( |
319 content::NavigationHandle* navigation_handle) override; | 320 content::NavigationHandle* navigation_handle) override; |
320 std::unique_ptr<content::MemoryCoordinatorDelegate> | 321 std::unique_ptr<content::MemoryCoordinatorDelegate> |
321 GetMemoryCoordinatorDelegate() override; | 322 GetMemoryCoordinatorDelegate() override; |
322 ::rappor::RapporService* GetRapporService() override; | 323 ::rappor::RapporService* GetRapporService() override; |
| 324 content::mojom::NetworkContextPtr CreateNetworkContext( |
| 325 content::BrowserContext* context, |
| 326 bool in_memory, |
| 327 const base::FilePath& relative_partition_path) override; |
323 | 328 |
324 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) | 329 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) |
325 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, | 330 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, |
326 media::mojom::RemotingSourcePtr source, | 331 media::mojom::RemotingSourcePtr source, |
327 media::mojom::RemoterRequest request) final; | 332 media::mojom::RemoterRequest request) final; |
328 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) | 333 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) |
329 | 334 |
330 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams() | 335 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams() |
331 override; | 336 override; |
332 base::FilePath GetLoggingFileName() override; | 337 base::FilePath GetLoggingFileName() override; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 std::unique_ptr< | 411 std::unique_ptr< |
407 service_manager::BinderRegistryWithArgs<content::RenderFrameHost*>> | 412 service_manager::BinderRegistryWithArgs<content::RenderFrameHost*>> |
408 frame_interfaces_parameterized_; | 413 frame_interfaces_parameterized_; |
409 | 414 |
410 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 415 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
411 | 416 |
412 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 417 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
413 }; | 418 }; |
414 | 419 |
415 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 420 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |