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" |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/prefs/pref_member.h" | 16 #include "base/prefs/pref_member.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 18 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
19 #include "chrome/browser/io_thread.h" | 19 #include "chrome/browser/io_thread.h" |
20 #include "chrome/browser/net/chrome_url_request_context.h" | 20 #include "chrome/browser/net/chrome_url_request_context.h" |
21 #include "chrome/browser/profiles/storage_partition_descriptor.h" | 21 #include "chrome/browser/profiles/storage_partition_descriptor.h" |
22 #include "chrome/common/content_settings_types.h" | 22 #include "chrome/common/content_settings_types.h" |
23 #include "content/public/browser/content_browser_client.h" | 23 #include "content/public/browser/content_browser_client.h" |
24 #include "content/public/browser/resource_context.h" | 24 #include "content/public/browser/resource_context.h" |
25 #include "net/cookies/cookie_monster.h" | 25 #include "net/cookies/cookie_monster.h" |
26 #include "net/http/http_network_session.h" | 26 #include "net/http/http_network_session.h" |
27 #include "net/ssl/client_cert_store.h" | |
jam
2013/10/25 15:33:58
nit: not needed in the header
mattm
2013/10/25 19:34:36
Done.
| |
27 #include "net/url_request/url_request_job_factory.h" | 28 #include "net/url_request/url_request_job_factory.h" |
28 | 29 |
29 class ChromeHttpUserAgentSettings; | 30 class ChromeHttpUserAgentSettings; |
30 class ChromeNetworkDelegate; | 31 class ChromeNetworkDelegate; |
31 class CookieSettings; | 32 class CookieSettings; |
32 class DesktopNotificationService; | 33 class DesktopNotificationService; |
33 class ExtensionInfoMap; | 34 class ExtensionInfoMap; |
34 class HostContentSettingsMap; | 35 class HostContentSettingsMap; |
35 class ManagedModeURLFilter; | 36 class ManagedModeURLFilter; |
36 class Profile; | 37 class Profile; |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
356 class ResourceContext : public content::ResourceContext { | 357 class ResourceContext : public content::ResourceContext { |
357 public: | 358 public: |
358 explicit ResourceContext(ProfileIOData* io_data); | 359 explicit ResourceContext(ProfileIOData* io_data); |
359 virtual ~ResourceContext(); | 360 virtual ~ResourceContext(); |
360 | 361 |
361 // ResourceContext implementation: | 362 // ResourceContext implementation: |
362 virtual net::HostResolver* GetHostResolver() OVERRIDE; | 363 virtual net::HostResolver* GetHostResolver() OVERRIDE; |
363 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; | 364 virtual net::URLRequestContext* GetRequestContext() 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; |
367 virtual scoped_ptr<net::ClientCertStore> GetClientCertStore() OVERRIDE; | |
366 | 368 |
367 private: | 369 private: |
368 friend class ProfileIOData; | 370 friend class ProfileIOData; |
369 | 371 |
370 // Helper method that returns true if |type| is allowed for |origin|, false | 372 // Helper method that returns true if |type| is allowed for |origin|, false |
371 // otherwise. | 373 // otherwise. |
372 bool AllowContentAccess(const GURL& origin, ContentSettingsType type); | 374 bool AllowContentAccess(const GURL& origin, ContentSettingsType type); |
373 | 375 |
374 ProfileIOData* const io_data_; | 376 ProfileIOData* const io_data_; |
375 | 377 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
535 | 537 |
536 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 538 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
537 bool initialized_on_UI_thread_; | 539 bool initialized_on_UI_thread_; |
538 | 540 |
539 bool is_incognito_; | 541 bool is_incognito_; |
540 | 542 |
541 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 543 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
542 }; | 544 }; |
543 | 545 |
544 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 546 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |