| 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 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 | 343 |
| 344 private: | 344 private: |
| 345 class ResourceContext : public content::ResourceContext { | 345 class ResourceContext : public content::ResourceContext { |
| 346 public: | 346 public: |
| 347 explicit ResourceContext(ProfileIOData* io_data); | 347 explicit ResourceContext(ProfileIOData* io_data); |
| 348 virtual ~ResourceContext(); | 348 virtual ~ResourceContext(); |
| 349 | 349 |
| 350 // ResourceContext implementation: | 350 // ResourceContext implementation: |
| 351 virtual net::HostResolver* GetHostResolver() OVERRIDE; | 351 virtual net::HostResolver* GetHostResolver() OVERRIDE; |
| 352 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; | 352 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; |
| 353 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore() OVERRIDE; | 353 virtual scoped_ptr<net::ClientCertStore> CreateClientCertStore( |
| 354 const std::string& host_and_port) OVERRIDE; |
| 354 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE; | 355 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE; |
| 355 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE; | 356 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE; |
| 356 | 357 |
| 357 private: | 358 private: |
| 358 friend class ProfileIOData; | 359 friend class ProfileIOData; |
| 359 | 360 |
| 360 // Helper method that returns true if |type| is allowed for |origin|, false | 361 // Helper method that returns true if |type| is allowed for |origin|, false |
| 361 // otherwise. | 362 // otherwise. |
| 362 bool AllowContentAccess(const GURL& origin, ContentSettingsType type); | 363 bool AllowContentAccess(const GURL& origin, ContentSettingsType type); |
| 363 | 364 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 | 522 |
| 522 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 523 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 523 bool initialized_on_UI_thread_; | 524 bool initialized_on_UI_thread_; |
| 524 | 525 |
| 525 bool is_incognito_; | 526 bool is_incognito_; |
| 526 | 527 |
| 527 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 528 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 528 }; | 529 }; |
| 529 | 530 |
| 530 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 531 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |