| 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 CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 enum class AllowWebBluetoothResult { | 379 enum class AllowWebBluetoothResult { |
| 380 ALLOW, | 380 ALLOW, |
| 381 BLOCK_POLICY, | 381 BLOCK_POLICY, |
| 382 BLOCK_GLOBALLY_DISABLED, | 382 BLOCK_GLOBALLY_DISABLED, |
| 383 }; | 383 }; |
| 384 virtual AllowWebBluetoothResult AllowWebBluetooth( | 384 virtual AllowWebBluetoothResult AllowWebBluetooth( |
| 385 content::BrowserContext* browser_context, | 385 content::BrowserContext* browser_context, |
| 386 const url::Origin& requesting_origin, | 386 const url::Origin& requesting_origin, |
| 387 const url::Origin& embedding_origin); | 387 const url::Origin& embedding_origin); |
| 388 | 388 |
| 389 // Returns a blacklist of UUIDs that have restrictions when accessed | 389 // Returns a blocklist of UUIDs that have restrictions when accessed |
| 390 // via Web Bluetooth. Parsed by BluetoothBlacklist::Add(). | 390 // via Web Bluetooth. Parsed by BluetoothBlocklist::Add(). |
| 391 // | 391 // |
| 392 // The blacklist string must be a comma-separated list of UUID:exclusion | 392 // The blocklist string must be a comma-separated list of UUID:exclusion |
| 393 // pairs. The pairs may be separated by whitespace. Pair components are | 393 // pairs. The pairs may be separated by whitespace. Pair components are |
| 394 // colon-separated and must not have whitespace around the colon. | 394 // colon-separated and must not have whitespace around the colon. |
| 395 // | 395 // |
| 396 // UUIDs are a string that BluetoothUUID can parse (See BluetoothUUID | 396 // UUIDs are a string that BluetoothUUID can parse (See BluetoothUUID |
| 397 // constructor comment). Exclusion values are a single lower case character | 397 // constructor comment). Exclusion values are a single lower case character |
| 398 // string "e", "r", or "w" for EXCLUDE, EXCLUDE_READS, or EXCLUDE_WRITES. | 398 // string "e", "r", or "w" for EXCLUDE, EXCLUDE_READS, or EXCLUDE_WRITES. |
| 399 // | 399 // |
| 400 // Example: | 400 // Example: |
| 401 // "1812:e, 00001800-0000-1000-8000-00805f9b34fb:w, ignored:1, alsoignored." | 401 // "1812:e, 00001800-0000-1000-8000-00805f9b34fb:w, ignored:1, alsoignored." |
| 402 virtual std::string GetWebBluetoothBlacklist(); | 402 virtual std::string GetWebBluetoothBlocklist(); |
| 403 | 403 |
| 404 // Allow the embedder to override the request context based on the URL for | 404 // Allow the embedder to override the request context based on the URL for |
| 405 // certain operations, like cookie access. Returns nullptr to indicate the | 405 // certain operations, like cookie access. Returns nullptr to indicate the |
| 406 // regular request context should be used. | 406 // regular request context should be used. |
| 407 // This is called on the IO thread. | 407 // This is called on the IO thread. |
| 408 virtual net::URLRequestContext* OverrideRequestContextForURL( | 408 virtual net::URLRequestContext* OverrideRequestContextForURL( |
| 409 const GURL& url, ResourceContext* context); | 409 const GURL& url, ResourceContext* context); |
| 410 | 410 |
| 411 // Allow the embedder to specify a string version of the storage partition | 411 // Allow the embedder to specify a string version of the storage partition |
| 412 // config with a site. | 412 // config with a site. |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 771 #endif | 771 #endif |
| 772 | 772 |
| 773 // Returns an instance of MemoryCoordinatorDelegate. | 773 // Returns an instance of MemoryCoordinatorDelegate. |
| 774 virtual std::unique_ptr<MemoryCoordinatorDelegate> | 774 virtual std::unique_ptr<MemoryCoordinatorDelegate> |
| 775 GetMemoryCoordinatorDelegate(); | 775 GetMemoryCoordinatorDelegate(); |
| 776 }; | 776 }; |
| 777 | 777 |
| 778 } // namespace content | 778 } // namespace content |
| 779 | 779 |
| 780 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 780 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |