Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(407)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 2554253002: bluetooth: web: Rename Blacklist to Blocklist (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 enum class AllowWebBluetoothResult { 388 enum class AllowWebBluetoothResult {
389 ALLOW, 389 ALLOW,
390 BLOCK_POLICY, 390 BLOCK_POLICY,
391 BLOCK_GLOBALLY_DISABLED, 391 BLOCK_GLOBALLY_DISABLED,
392 }; 392 };
393 virtual AllowWebBluetoothResult AllowWebBluetooth( 393 virtual AllowWebBluetoothResult AllowWebBluetooth(
394 content::BrowserContext* browser_context, 394 content::BrowserContext* browser_context,
395 const url::Origin& requesting_origin, 395 const url::Origin& requesting_origin,
396 const url::Origin& embedding_origin); 396 const url::Origin& embedding_origin);
397 397
398 // Returns a blacklist of UUIDs that have restrictions when accessed 398 // Returns a blocklist of UUIDs that have restrictions when accessed
399 // via Web Bluetooth. Parsed by BluetoothBlacklist::Add(). 399 // via Web Bluetooth. Parsed by BluetoothBlocklist::Add().
400 // 400 //
401 // The blacklist string must be a comma-separated list of UUID:exclusion 401 // The blocklist string must be a comma-separated list of UUID:exclusion
402 // pairs. The pairs may be separated by whitespace. Pair components are 402 // pairs. The pairs may be separated by whitespace. Pair components are
403 // colon-separated and must not have whitespace around the colon. 403 // colon-separated and must not have whitespace around the colon.
404 // 404 //
405 // UUIDs are a string that BluetoothUUID can parse (See BluetoothUUID 405 // UUIDs are a string that BluetoothUUID can parse (See BluetoothUUID
406 // constructor comment). Exclusion values are a single lower case character 406 // constructor comment). Exclusion values are a single lower case character
407 // string "e", "r", or "w" for EXCLUDE, EXCLUDE_READS, or EXCLUDE_WRITES. 407 // string "e", "r", or "w" for EXCLUDE, EXCLUDE_READS, or EXCLUDE_WRITES.
408 // 408 //
409 // Example: 409 // Example:
410 // "1812:e, 00001800-0000-1000-8000-00805f9b34fb:w, ignored:1, alsoignored." 410 // "1812:e, 00001800-0000-1000-8000-00805f9b34fb:w, ignored:1, alsoignored."
411 virtual std::string GetWebBluetoothBlacklist(); 411 virtual std::string GetWebBluetoothBlocklist();
412 412
413 // Allow the embedder to override the request context based on the URL for 413 // Allow the embedder to override the request context based on the URL for
414 // certain operations, like cookie access. Returns nullptr to indicate the 414 // certain operations, like cookie access. Returns nullptr to indicate the
415 // regular request context should be used. 415 // regular request context should be used.
416 // This is called on the IO thread. 416 // This is called on the IO thread.
417 virtual net::URLRequestContext* OverrideRequestContextForURL( 417 virtual net::URLRequestContext* OverrideRequestContextForURL(
418 const GURL& url, ResourceContext* context); 418 const GURL& url, ResourceContext* context);
419 419
420 // Allow the embedder to specify a string version of the storage partition 420 // Allow the embedder to specify a string version of the storage partition
421 // config with a site. 421 // config with a site.
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 // by |render_frame_host|. This may be called multiple times if there is more 788 // by |render_frame_host|. This may be called multiple times if there is more
789 // than one source candidate in the same render frame. 789 // than one source candidate in the same render frame.
790 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, 790 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host,
791 media::mojom::RemotingSourcePtr source, 791 media::mojom::RemotingSourcePtr source,
792 media::mojom::RemoterRequest request) {} 792 media::mojom::RemoterRequest request) {}
793 }; 793 };
794 794
795 } // namespace content 795 } // namespace content
796 796
797 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 797 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/bluetooth/web_bluetooth_service_impl.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698