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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
408 enum class AllowWebBluetoothResult { | 408 enum class AllowWebBluetoothResult { |
409 ALLOW, | 409 ALLOW, |
410 BLOCK_POLICY, | 410 BLOCK_POLICY, |
411 BLOCK_GLOBALLY_DISABLED, | 411 BLOCK_GLOBALLY_DISABLED, |
412 }; | 412 }; |
413 virtual AllowWebBluetoothResult AllowWebBluetooth( | 413 virtual AllowWebBluetoothResult AllowWebBluetooth( |
414 content::BrowserContext* browser_context, | 414 content::BrowserContext* browser_context, |
415 const url::Origin& requesting_origin, | 415 const url::Origin& requesting_origin, |
416 const url::Origin& embedding_origin); | 416 const url::Origin& embedding_origin); |
417 | 417 |
418 // Returns a blacklist of UUIDs that have restrictions when accessed | |
Jeffrey Yasskin
2016/04/05 17:58:55
Could you mention that these are parsed by Bluetoo
scheib
2016/04/05 18:43:37
Done.
| |
419 // via Web Bluetooth. | |
420 // | |
421 // The blacklist string must be a comma-separated list of UUID:exclusion | |
422 // pairs. The pairs may be separated by whitespace. Pair components are | |
423 // colon-separated and must not have whitespace around the colon. | |
424 // | |
425 // UUIDs are a string that BluetoothUUID can parse (See BluetoothUUID | |
426 // constructor comment). Exclusion values are a single lower case character | |
427 // string "e", "r", or "w" for EXCLUDE, EXCLUDE_READS, or EXCLUDE_WRITES. | |
428 // | |
429 // Example: | |
430 // "1812:e, 00001800-0000-1000-8000-00805f9b34fb:w, ignored:1, alsoignored." | |
431 virtual std::string GetWebBluetoothBlacklist(); | |
432 | |
418 // Allow the embedder to override the request context based on the URL for | 433 // Allow the embedder to override the request context based on the URL for |
419 // certain operations, like cookie access. Returns nullptr to indicate the | 434 // certain operations, like cookie access. Returns nullptr to indicate the |
420 // regular request context should be used. | 435 // regular request context should be used. |
421 // This is called on the IO thread. | 436 // This is called on the IO thread. |
422 virtual net::URLRequestContext* OverrideRequestContextForURL( | 437 virtual net::URLRequestContext* OverrideRequestContextForURL( |
423 const GURL& url, ResourceContext* context); | 438 const GURL& url, ResourceContext* context); |
424 | 439 |
425 // Allow the embedder to specify a string version of the storage partition | 440 // Allow the embedder to specify a string version of the storage partition |
426 // config with a site. | 441 // config with a site. |
427 virtual std::string GetStoragePartitionIdForSite( | 442 virtual std::string GetStoragePartitionIdForSite( |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
765 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 780 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
766 // implementation. Return nullptr to disable external surface video. | 781 // implementation. Return nullptr to disable external surface video. |
767 virtual ExternalVideoSurfaceContainer* | 782 virtual ExternalVideoSurfaceContainer* |
768 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 783 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
769 #endif | 784 #endif |
770 }; | 785 }; |
771 | 786 |
772 } // namespace content | 787 } // namespace content |
773 | 788 |
774 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 789 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |