| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 bool AllowKeygen(const GURL& url, content::ResourceContext* context) override; | 164 bool AllowKeygen(const GURL& url, content::ResourceContext* context) override; |
| 165 AllowWebBluetoothResult AllowWebBluetooth( | 165 AllowWebBluetoothResult AllowWebBluetooth( |
| 166 content::BrowserContext* browser_context, | 166 content::BrowserContext* browser_context, |
| 167 const url::Origin& requesting_origin, | 167 const url::Origin& requesting_origin, |
| 168 const url::Origin& embedding_origin) override; | 168 const url::Origin& embedding_origin) override; |
| 169 std::string GetWebBluetoothBlocklist() override; | 169 std::string GetWebBluetoothBlocklist() override; |
| 170 net::URLRequestContext* OverrideRequestContextForURL( | 170 net::URLRequestContext* OverrideRequestContextForURL( |
| 171 const GURL& url, | 171 const GURL& url, |
| 172 content::ResourceContext* context) override; | 172 content::ResourceContext* context) override; |
| 173 content::QuotaPermissionContext* CreateQuotaPermissionContext() override; | 173 content::QuotaPermissionContext* CreateQuotaPermissionContext() override; |
| 174 std::unique_ptr<storage::QuotaEvictionPolicy> | 174 void GetQuotaSettings( |
| 175 GetTemporaryStorageEvictionPolicy(content::BrowserContext* context) override; | 175 content::BrowserContext* context, |
| 176 content::StoragePartition* partition, |
| 177 const storage::OptionalQuotaSettingsCallback& callback) override; |
| 178 |
| 176 void AllowCertificateError( | 179 void AllowCertificateError( |
| 177 content::WebContents* web_contents, | 180 content::WebContents* web_contents, |
| 178 int cert_error, | 181 int cert_error, |
| 179 const net::SSLInfo& ssl_info, | 182 const net::SSLInfo& ssl_info, |
| 180 const GURL& request_url, | 183 const GURL& request_url, |
| 181 content::ResourceType resource_type, | 184 content::ResourceType resource_type, |
| 182 bool overridable, | 185 bool overridable, |
| 183 bool strict_enforcement, | 186 bool strict_enforcement, |
| 184 bool expired_previous_decision, | 187 bool expired_previous_decision, |
| 185 const base::Callback<void(content::CertificateRequestResultType)>& | 188 const base::Callback<void(content::CertificateRequestResultType)>& |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 322 |
| 320 void GetTaskSchedulerInitializationParams( | 323 void GetTaskSchedulerInitializationParams( |
| 321 std::vector<base::SchedulerWorkerPoolParams>* params_vector, | 324 std::vector<base::SchedulerWorkerPoolParams>* params_vector, |
| 322 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* | 325 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* |
| 323 index_to_traits_callback) override; | 326 index_to_traits_callback) override; |
| 324 | 327 |
| 325 void PerformExperimentalTaskSchedulerRedirections() override; | 328 void PerformExperimentalTaskSchedulerRedirections() override; |
| 326 | 329 |
| 327 private: | 330 private: |
| 328 friend class DisableWebRtcEncryptionFlagTest; | 331 friend class DisableWebRtcEncryptionFlagTest; |
| 332 friend class InProcessBrowserTest; |
| 329 | 333 |
| 330 #if BUILDFLAG(ENABLE_WEBRTC) | 334 #if BUILDFLAG(ENABLE_WEBRTC) |
| 331 // Copies disable WebRTC encryption switch depending on the channel. | 335 // Copies disable WebRTC encryption switch depending on the channel. |
| 332 static void MaybeCopyDisableWebRtcEncryptionSwitch( | 336 static void MaybeCopyDisableWebRtcEncryptionSwitch( |
| 333 base::CommandLine* to_command_line, | 337 base::CommandLine* to_command_line, |
| 334 const base::CommandLine& from_command_line, | 338 const base::CommandLine& from_command_line, |
| 335 version_info::Channel channel); | 339 version_info::Channel channel); |
| 336 #endif | 340 #endif |
| 337 | 341 |
| 338 void FileSystemAccessed( | 342 void FileSystemAccessed( |
| (...skipping 10 matching lines...) Expand all Loading... |
| 349 bool allow); | 353 bool allow); |
| 350 | 354 |
| 351 static void RequestFileSystemPermissionOnUIThread( | 355 static void RequestFileSystemPermissionOnUIThread( |
| 352 int render_process_id, | 356 int render_process_id, |
| 353 int render_frame_id, | 357 int render_frame_id, |
| 354 const GURL& url, | 358 const GURL& url, |
| 355 bool allowed_by_default, | 359 bool allowed_by_default, |
| 356 const base::Callback<void(bool)>& callback); | 360 const base::Callback<void(bool)>& callback); |
| 357 #endif | 361 #endif |
| 358 | 362 |
| 363 // The value pointed to by |settings| should remain valid until the |
| 364 // the function is called again with a new value or a nullptr. |
| 365 static void SetDefaultQuotaSettingsForTesting( |
| 366 const storage::QuotaSettings *settings); |
| 367 |
| 359 #if BUILDFLAG(ENABLE_PLUGINS) | 368 #if BUILDFLAG(ENABLE_PLUGINS) |
| 360 // Set of origins that can use TCP/UDP private APIs from NaCl. | 369 // Set of origins that can use TCP/UDP private APIs from NaCl. |
| 361 std::set<std::string> allowed_socket_origins_; | 370 std::set<std::string> allowed_socket_origins_; |
| 362 // Set of origins that can get a handle for FileIO from NaCl. | 371 // Set of origins that can get a handle for FileIO from NaCl. |
| 363 std::set<std::string> allowed_file_handle_origins_; | 372 std::set<std::string> allowed_file_handle_origins_; |
| 364 // Set of origins that can use "dev chanel" APIs from NaCl, even on stable | 373 // Set of origins that can use "dev chanel" APIs from NaCl, even on stable |
| 365 // versions of Chrome. | 374 // versions of Chrome. |
| 366 std::set<std::string> allowed_dev_channel_origins_; | 375 std::set<std::string> allowed_dev_channel_origins_; |
| 367 #endif | 376 #endif |
| 368 | 377 |
| 369 // Vector of additional ChromeContentBrowserClientParts. | 378 // Vector of additional ChromeContentBrowserClientParts. |
| 370 // Parts are deleted in the reverse order they are added. | 379 // Parts are deleted in the reverse order they are added. |
| 371 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 380 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
| 372 | 381 |
| 373 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 382 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
| 374 | 383 |
| 375 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 384 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 376 }; | 385 }; |
| 377 | 386 |
| 378 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 387 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |