Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: chrome/browser/chrome_content_browser_client.h

Issue 2924723002: Network service: SafeBrowsing check for frame-resources from browser. (Closed)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void PerformExperimentalTaskSchedulerRedirections() override; 324 void PerformExperimentalTaskSchedulerRedirections() override;
320 bool ShouldRedirectDOMStorageTaskRunner() override; 325 bool ShouldRedirectDOMStorageTaskRunner() override;
321 bool RedirectNonUINonIOBrowserThreadsToTaskScheduler() override; 326 bool RedirectNonUINonIOBrowserThreadsToTaskScheduler() override;
327 std::vector<std::unique_ptr<content::URLLoaderThrottle>>
328 CreateURLLoaderThrottles(
329 const base::Callback<content::WebContents*()>& wc_getter) override;
322 330
323 private: 331 private:
324 friend class DisableWebRtcEncryptionFlagTest; 332 friend class DisableWebRtcEncryptionFlagTest;
325 friend class InProcessBrowserTest; 333 friend class InProcessBrowserTest;
326 334
327 #if BUILDFLAG(ENABLE_WEBRTC) 335 #if BUILDFLAG(ENABLE_WEBRTC)
328 // Copies disable WebRTC encryption switch depending on the channel. 336 // Copies disable WebRTC encryption switch depending on the channel.
329 static void MaybeCopyDisableWebRtcEncryptionSwitch( 337 static void MaybeCopyDisableWebRtcEncryptionSwitch(
330 base::CommandLine* to_command_line, 338 base::CommandLine* to_command_line,
331 const base::CommandLine& from_command_line, 339 const base::CommandLine& from_command_line,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 // versions of Chrome. 375 // versions of Chrome.
368 std::set<std::string> allowed_dev_channel_origins_; 376 std::set<std::string> allowed_dev_channel_origins_;
369 #endif 377 #endif
370 378
371 // Vector of additional ChromeContentBrowserClientParts. 379 // Vector of additional ChromeContentBrowserClientParts.
372 // Parts are deleted in the reverse order they are added. 380 // Parts are deleted in the reverse order they are added.
373 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 381 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
374 382
375 service_manager::BinderRegistry gpu_binder_registry_; 383 service_manager::BinderRegistry gpu_binder_registry_;
376 384
385 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_;
vakh (use Gerrit instead) 2017/06/15 21:52:58 I'd prefer calling this safe_browsing_service_ or
yzshen1 2017/06/16 21:27:09 Done.
386
377 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 387 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
378 388
379 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 389 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
380 }; 390 };
381 391
382 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 392 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698