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/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
19 #include "build/build_config.h" | 20 #include "build/build_config.h" |
20 #include "content/public/browser/content_browser_client.h" | 21 #include "content/public/browser/content_browser_client.h" |
21 #include "extensions/features/features.h" | 22 #include "extensions/features/features.h" |
22 #include "media/media_features.h" | 23 #include "media/media_features.h" |
23 #include "ppapi/features/features.h" | 24 #include "ppapi/features/features.h" |
24 #include "services/service_manager/public/cpp/binder_registry.h" | 25 #include "services/service_manager/public/cpp/binder_registry.h" |
25 | 26 |
26 class ChromeContentBrowserClientParts; | 27 class ChromeContentBrowserClientParts; |
27 | 28 |
28 namespace base { | 29 namespace base { |
29 class CommandLine; | 30 class CommandLine; |
30 } | 31 } |
31 | 32 |
32 namespace blink { | 33 namespace blink { |
33 namespace mojom { | 34 namespace mojom { |
34 class WindowFeatures; | 35 class WindowFeatures; |
35 } | 36 } |
36 } | 37 } |
37 | 38 |
38 namespace content { | 39 namespace content { |
39 class BrowserContext; | 40 class BrowserContext; |
40 class QuotaPermissionContext; | 41 class QuotaPermissionContext; |
41 } | 42 } |
42 | 43 |
| 44 namespace safe_browsing { |
| 45 class SafeBrowsingService; |
| 46 } |
| 47 |
43 namespace user_prefs { | 48 namespace user_prefs { |
44 class PrefRegistrySyncable; | 49 class PrefRegistrySyncable; |
45 } | 50 } |
46 | 51 |
47 namespace version_info { | 52 namespace version_info { |
48 enum class Channel; | 53 enum class Channel; |
49 } | 54 } |
50 | 55 |
51 namespace url { | 56 namespace url { |
52 class Origin; | 57 class Origin; |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 315 |
311 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) | 316 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) |
312 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, | 317 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, |
313 media::mojom::RemotingSourcePtr source, | 318 media::mojom::RemotingSourcePtr source, |
314 media::mojom::RemoterRequest request) final; | 319 media::mojom::RemoterRequest request) final; |
315 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) | 320 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) |
316 | 321 |
317 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams() | 322 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams() |
318 override; | 323 override; |
319 base::FilePath GetLoggingFileName() override; | 324 base::FilePath GetLoggingFileName() override; |
| 325 std::vector<std::unique_ptr<content::URLLoaderThrottle>> |
| 326 CreateURLLoaderThrottles( |
| 327 const base::Callback<content::WebContents*()>& wc_getter) override; |
320 | 328 |
321 private: | 329 private: |
322 friend class DisableWebRtcEncryptionFlagTest; | 330 friend class DisableWebRtcEncryptionFlagTest; |
323 friend class InProcessBrowserTest; | 331 friend class InProcessBrowserTest; |
324 | 332 |
325 #if BUILDFLAG(ENABLE_WEBRTC) | 333 #if BUILDFLAG(ENABLE_WEBRTC) |
326 // Copies disable WebRTC encryption switch depending on the channel. | 334 // Copies disable WebRTC encryption switch depending on the channel. |
327 static void MaybeCopyDisableWebRtcEncryptionSwitch( | 335 static void MaybeCopyDisableWebRtcEncryptionSwitch( |
328 base::CommandLine* to_command_line, | 336 base::CommandLine* to_command_line, |
329 const base::CommandLine& from_command_line, | 337 const base::CommandLine& from_command_line, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 // versions of Chrome. | 373 // versions of Chrome. |
366 std::set<std::string> allowed_dev_channel_origins_; | 374 std::set<std::string> allowed_dev_channel_origins_; |
367 #endif | 375 #endif |
368 | 376 |
369 // Vector of additional ChromeContentBrowserClientParts. | 377 // Vector of additional ChromeContentBrowserClientParts. |
370 // Parts are deleted in the reverse order they are added. | 378 // Parts are deleted in the reverse order they are added. |
371 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 379 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
372 | 380 |
373 service_manager::BinderRegistry gpu_binder_registry_; | 381 service_manager::BinderRegistry gpu_binder_registry_; |
374 | 382 |
| 383 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_service_; |
| 384 |
375 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 385 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
376 | 386 |
377 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 387 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
378 }; | 388 }; |
379 | 389 |
380 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 390 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |