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> |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 void AllowWorkerFileSystem( | 153 void AllowWorkerFileSystem( |
154 const GURL& url, | 154 const GURL& url, |
155 content::ResourceContext* context, | 155 content::ResourceContext* context, |
156 const std::vector<std::pair<int, int>>& render_frames, | 156 const std::vector<std::pair<int, int>>& render_frames, |
157 base::Callback<void(bool)> callback) override; | 157 base::Callback<void(bool)> callback) override; |
158 bool AllowWorkerIndexedDB( | 158 bool AllowWorkerIndexedDB( |
159 const GURL& url, | 159 const GURL& url, |
160 const base::string16& name, | 160 const base::string16& name, |
161 content::ResourceContext* context, | 161 content::ResourceContext* context, |
162 const std::vector<std::pair<int, int>>& render_frames) override; | 162 const std::vector<std::pair<int, int>>& render_frames) override; |
163 #if defined(ENABLE_WEBRTC) | 163 #if BUILDFLAG(ENABLE_WEBRTC) |
164 bool AllowWebRTCIdentityCache(const GURL& url, | 164 bool AllowWebRTCIdentityCache(const GURL& url, |
165 const GURL& first_party_url, | 165 const GURL& first_party_url, |
166 content::ResourceContext* context) override; | 166 content::ResourceContext* context) override; |
167 #endif // defined(ENABLE_WEBRTC) | 167 #endif // BUILDFLAG(ENABLE_WEBRTC) |
168 bool AllowKeygen(const GURL& url, content::ResourceContext* context) override; | 168 bool AllowKeygen(const GURL& url, content::ResourceContext* context) override; |
169 AllowWebBluetoothResult AllowWebBluetooth( | 169 AllowWebBluetoothResult AllowWebBluetooth( |
170 content::BrowserContext* browser_context, | 170 content::BrowserContext* browser_context, |
171 const url::Origin& requesting_origin, | 171 const url::Origin& requesting_origin, |
172 const url::Origin& embedding_origin) override; | 172 const url::Origin& embedding_origin) override; |
173 std::string GetWebBluetoothBlacklist() override; | 173 std::string GetWebBluetoothBlacklist() override; |
174 net::URLRequestContext* OverrideRequestContextForURL( | 174 net::URLRequestContext* OverrideRequestContextForURL( |
175 const GURL& url, | 175 const GURL& url, |
176 content::ResourceContext* context) override; | 176 content::ResourceContext* context) override; |
177 content::QuotaPermissionContext* CreateQuotaPermissionContext() override; | 177 content::QuotaPermissionContext* CreateQuotaPermissionContext() override; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 316 |
317 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) | 317 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) |
318 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, | 318 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, |
319 media::mojom::RemotingSourcePtr source, | 319 media::mojom::RemotingSourcePtr source, |
320 media::mojom::RemoterRequest request) final; | 320 media::mojom::RemoterRequest request) final; |
321 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) | 321 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) |
322 | 322 |
323 private: | 323 private: |
324 friend class DisableWebRtcEncryptionFlagTest; | 324 friend class DisableWebRtcEncryptionFlagTest; |
325 | 325 |
326 #if defined(ENABLE_WEBRTC) | 326 #if BUILDFLAG(ENABLE_WEBRTC) |
327 // Copies disable WebRTC encryption switch depending on the channel. | 327 // Copies disable WebRTC encryption switch depending on the channel. |
328 static void MaybeCopyDisableWebRtcEncryptionSwitch( | 328 static void MaybeCopyDisableWebRtcEncryptionSwitch( |
329 base::CommandLine* to_command_line, | 329 base::CommandLine* to_command_line, |
330 const base::CommandLine& from_command_line, | 330 const base::CommandLine& from_command_line, |
331 version_info::Channel channel); | 331 version_info::Channel channel); |
332 #endif | 332 #endif |
333 | 333 |
334 void FileSystemAccessed( | 334 void FileSystemAccessed( |
335 const GURL& url, | 335 const GURL& url, |
336 const std::vector<std::pair<int, int> >& render_frames, | 336 const std::vector<std::pair<int, int> >& render_frames, |
(...skipping 28 matching lines...) Expand all Loading... |
365 // Vector of additional ChromeContentBrowserClientParts. | 365 // Vector of additional ChromeContentBrowserClientParts. |
366 // Parts are deleted in the reverse order they are added. | 366 // Parts are deleted in the reverse order they are added. |
367 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 367 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
368 | 368 |
369 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 369 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
370 | 370 |
371 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 371 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
372 }; | 372 }; |
373 | 373 |
374 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 374 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |