| 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 354 |
| 355 private: | 355 private: |
| 356 class ResourceContext : public content::ResourceContext { | 356 class ResourceContext : public content::ResourceContext { |
| 357 public: | 357 public: |
| 358 explicit ResourceContext(ProfileIOData* io_data); | 358 explicit ResourceContext(ProfileIOData* io_data); |
| 359 virtual ~ResourceContext(); | 359 virtual ~ResourceContext(); |
| 360 | 360 |
| 361 // ResourceContext implementation: | 361 // ResourceContext implementation: |
| 362 virtual net::HostResolver* GetHostResolver() OVERRIDE; | 362 virtual net::HostResolver* GetHostResolver() OVERRIDE; |
| 363 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; | 363 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; |
| 364 virtual scoped_ptr<net::ClientCertStore> GetClientCertStore() OVERRIDE; |
| 364 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE; | 365 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE; |
| 365 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE; | 366 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE; |
| 366 | 367 |
| 367 private: | 368 private: |
| 368 friend class ProfileIOData; | 369 friend class ProfileIOData; |
| 369 | 370 |
| 370 // Helper method that returns true if |type| is allowed for |origin|, false | 371 // Helper method that returns true if |type| is allowed for |origin|, false |
| 371 // otherwise. | 372 // otherwise. |
| 372 bool AllowContentAccess(const GURL& origin, ContentSettingsType type); | 373 bool AllowContentAccess(const GURL& origin, ContentSettingsType type); |
| 373 | 374 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 | 536 |
| 536 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 537 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
| 537 bool initialized_on_UI_thread_; | 538 bool initialized_on_UI_thread_; |
| 538 | 539 |
| 539 bool is_incognito_; | 540 bool is_incognito_; |
| 540 | 541 |
| 541 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 542 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
| 542 }; | 543 }; |
| 543 | 544 |
| 544 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 545 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
| OLD | NEW |