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

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 483523006: Check all settings when checking mic and camera access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix for Android. Created 6 years, 3 months 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 | Annotate | Revision Log
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 CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 // ResourceContext implementation: 424 // ResourceContext implementation:
425 virtual net::HostResolver* GetHostResolver() OVERRIDE; 425 virtual net::HostResolver* GetHostResolver() OVERRIDE;
426 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; 426 virtual net::URLRequestContext* GetRequestContext() OVERRIDE;
427 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore() OVERRIDE; 427 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore() OVERRIDE;
428 virtual void CreateKeygenHandler( 428 virtual void CreateKeygenHandler(
429 uint32 key_size_in_bits, 429 uint32 key_size_in_bits,
430 const std::string& challenge_string, 430 const std::string& challenge_string,
431 const GURL& url, 431 const GURL& url,
432 const base::Callback<void(scoped_ptr<net::KeygenHandler>)>& callback) 432 const base::Callback<void(scoped_ptr<net::KeygenHandler>)>& callback)
433 OVERRIDE; 433 OVERRIDE;
434 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE;
435 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE;
436 virtual SaltCallback GetMediaDeviceIDSalt() OVERRIDE; 434 virtual SaltCallback GetMediaDeviceIDSalt() OVERRIDE;
437 435
438 private: 436 private:
439 friend class ProfileIOData; 437 friend class ProfileIOData;
440 438
441 // Helper method that returns true if |type| is allowed for |origin|, false
442 // otherwise.
443 bool AllowContentAccess(const GURL& origin, ContentSettingsType type);
444
445 ProfileIOData* const io_data_; 439 ProfileIOData* const io_data_;
446 440
447 net::HostResolver* host_resolver_; 441 net::HostResolver* host_resolver_;
448 net::URLRequestContext* request_context_; 442 net::URLRequestContext* request_context_;
449 }; 443 };
450 444
451 typedef std::map<StoragePartitionDescriptor, 445 typedef std::map<StoragePartitionDescriptor,
452 net::URLRequestContext*, 446 net::URLRequestContext*,
453 StoragePartitionDescriptorLess> 447 StoragePartitionDescriptorLess>
454 URLRequestContextMap; 448 URLRequestContextMap;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 619
626 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 620 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
627 bool initialized_on_UI_thread_; 621 bool initialized_on_UI_thread_;
628 622
629 const Profile::ProfileType profile_type_; 623 const Profile::ProfileType profile_type_;
630 624
631 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 625 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
632 }; 626 };
633 627
634 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 628 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698