| 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 enum class AllowWebBluetoothResult { | 389 enum class AllowWebBluetoothResult { |
| 390 ALLOW, | 390 ALLOW, |
| 391 BLOCK_POLICY, | 391 BLOCK_POLICY, |
| 392 BLOCK_GLOBALLY_DISABLED, | 392 BLOCK_GLOBALLY_DISABLED, |
| 393 }; | 393 }; |
| 394 virtual AllowWebBluetoothResult AllowWebBluetooth( | 394 virtual AllowWebBluetoothResult AllowWebBluetooth( |
| 395 content::BrowserContext* browser_context, | 395 content::BrowserContext* browser_context, |
| 396 const url::Origin& requesting_origin, | 396 const url::Origin& requesting_origin, |
| 397 const url::Origin& embedding_origin); | 397 const url::Origin& embedding_origin); |
| 398 | 398 |
| 399 // Returns a blacklist of UUIDs that have restrictions when accessed | 399 // Returns a blocklist of UUIDs that have restrictions when accessed |
| 400 // via Web Bluetooth. Parsed by BluetoothBlacklist::Add(). | 400 // via Web Bluetooth. Parsed by BluetoothBlocklist::Add(). |
| 401 // | 401 // |
| 402 // The blacklist string must be a comma-separated list of UUID:exclusion | 402 // The blocklist string must be a comma-separated list of UUID:exclusion |
| 403 // pairs. The pairs may be separated by whitespace. Pair components are | 403 // pairs. The pairs may be separated by whitespace. Pair components are |
| 404 // colon-separated and must not have whitespace around the colon. | 404 // colon-separated and must not have whitespace around the colon. |
| 405 // | 405 // |
| 406 // UUIDs are a string that BluetoothUUID can parse (See BluetoothUUID | 406 // UUIDs are a string that BluetoothUUID can parse (See BluetoothUUID |
| 407 // constructor comment). Exclusion values are a single lower case character | 407 // constructor comment). Exclusion values are a single lower case character |
| 408 // string "e", "r", or "w" for EXCLUDE, EXCLUDE_READS, or EXCLUDE_WRITES. | 408 // string "e", "r", or "w" for EXCLUDE, EXCLUDE_READS, or EXCLUDE_WRITES. |
| 409 // | 409 // |
| 410 // Example: | 410 // Example: |
| 411 // "1812:e, 00001800-0000-1000-8000-00805f9b34fb:w, ignored:1, alsoignored." | 411 // "1812:e, 00001800-0000-1000-8000-00805f9b34fb:w, ignored:1, alsoignored." |
| 412 virtual std::string GetWebBluetoothBlacklist(); | 412 virtual std::string GetWebBluetoothBlocklist(); |
| 413 | 413 |
| 414 // Allow the embedder to override the request context based on the URL for | 414 // Allow the embedder to override the request context based on the URL for |
| 415 // certain operations, like cookie access. Returns nullptr to indicate the | 415 // certain operations, like cookie access. Returns nullptr to indicate the |
| 416 // regular request context should be used. | 416 // regular request context should be used. |
| 417 // This is called on the IO thread. | 417 // This is called on the IO thread. |
| 418 virtual net::URLRequestContext* OverrideRequestContextForURL( | 418 virtual net::URLRequestContext* OverrideRequestContextForURL( |
| 419 const GURL& url, ResourceContext* context); | 419 const GURL& url, ResourceContext* context); |
| 420 | 420 |
| 421 // Allow the embedder to specify a string version of the storage partition | 421 // Allow the embedder to specify a string version of the storage partition |
| 422 // config with a site. | 422 // config with a site. |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 // by |render_frame_host|. This may be called multiple times if there is more | 789 // by |render_frame_host|. This may be called multiple times if there is more |
| 790 // than one source candidate in the same render frame. | 790 // than one source candidate in the same render frame. |
| 791 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, | 791 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, |
| 792 media::mojom::RemotingSourcePtr source, | 792 media::mojom::RemotingSourcePtr source, |
| 793 media::mojom::RemoterRequest request) {} | 793 media::mojom::RemoterRequest request) {} |
| 794 }; | 794 }; |
| 795 | 795 |
| 796 } // namespace content | 796 } // namespace content |
| 797 | 797 |
| 798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |