| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/profiles/profile_io_data.h" | 5 #include "chrome/browser/profiles/profile_io_data.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #include "chrome/common/pref_names.h" | 40 #include "chrome/common/pref_names.h" |
| 41 #include "chrome/common/url_constants.h" | 41 #include "chrome/common/url_constants.h" |
| 42 #include "content/browser/appcache/chrome_appcache_service.h" | 42 #include "content/browser/appcache/chrome_appcache_service.h" |
| 43 #include "content/browser/browser_thread.h" | 43 #include "content/browser/browser_thread.h" |
| 44 #include "content/browser/chrome_blob_storage_context.h" | 44 #include "content/browser/chrome_blob_storage_context.h" |
| 45 #include "content/browser/host_zoom_map.h" | 45 #include "content/browser/host_zoom_map.h" |
| 46 #include "content/browser/renderer_host/media/media_stream_manager.h" | 46 #include "content/browser/renderer_host/media/media_stream_manager.h" |
| 47 #include "content/browser/renderer_host/resource_dispatcher_host.h" | 47 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 48 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 48 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
| 49 #include "content/browser/resource_context.h" | 49 #include "content/browser/resource_context.h" |
| 50 #include "content/common/notification_service.h" | 50 #include "content/public/browser/notification_service.h" |
| 51 #include "net/base/origin_bound_cert_service.h" | 51 #include "net/base/origin_bound_cert_service.h" |
| 52 #include "net/http/http_transaction_factory.h" | 52 #include "net/http/http_transaction_factory.h" |
| 53 #include "net/http/http_util.h" | 53 #include "net/http/http_util.h" |
| 54 #include "net/proxy/proxy_config_service_fixed.h" | 54 #include "net/proxy/proxy_config_service_fixed.h" |
| 55 #include "net/proxy/proxy_script_fetcher_impl.h" | 55 #include "net/proxy/proxy_script_fetcher_impl.h" |
| 56 #include "net/proxy/proxy_service.h" | 56 #include "net/proxy/proxy_service.h" |
| 57 #include "net/url_request/url_request.h" | 57 #include "net/url_request/url_request.h" |
| 58 #include "webkit/blob/blob_data.h" | 58 #include "webkit/blob/blob_data.h" |
| 59 #include "webkit/blob/blob_url_request_job_factory.h" | 59 #include "webkit/blob/blob_url_request_job_factory.h" |
| 60 #include "webkit/database/database_tracker.h" | 60 #include "webkit/database/database_tracker.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 private: | 96 private: |
| 97 virtual ~ChromeCookieMonsterDelegate() {} | 97 virtual ~ChromeCookieMonsterDelegate() {} |
| 98 | 98 |
| 99 void OnCookieChangedAsyncHelper( | 99 void OnCookieChangedAsyncHelper( |
| 100 const net::CookieMonster::CanonicalCookie& cookie, | 100 const net::CookieMonster::CanonicalCookie& cookie, |
| 101 bool removed, | 101 bool removed, |
| 102 net::CookieMonster::Delegate::ChangeCause cause) { | 102 net::CookieMonster::Delegate::ChangeCause cause) { |
| 103 Profile* profile = profile_getter_.Run(); | 103 Profile* profile = profile_getter_.Run(); |
| 104 if (profile) { | 104 if (profile) { |
| 105 ChromeCookieDetails cookie_details(&cookie, removed, cause); | 105 ChromeCookieDetails cookie_details(&cookie, removed, cause); |
| 106 NotificationService::current()->Notify( | 106 content::NotificationService::current()->Notify( |
| 107 chrome::NOTIFICATION_COOKIE_CHANGED, | 107 chrome::NOTIFICATION_COOKIE_CHANGED, |
| 108 content::Source<Profile>(profile), | 108 content::Source<Profile>(profile), |
| 109 content::Details<ChromeCookieDetails>(&cookie_details)); | 109 content::Details<ChromeCookieDetails>(&cookie_details)); |
| 110 } | 110 } |
| 111 } | 111 } |
| 112 | 112 |
| 113 const base::Callback<Profile*(void)> profile_getter_; | 113 const base::Callback<Profile*(void)> profile_getter_; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 class ProtocolHandlerRegistryInterceptor | 116 class ProtocolHandlerRegistryInterceptor |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 bool posted = BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, | 536 bool posted = BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, |
| 537 new DeleteTask<ProfileIOData>(this)); | 537 new DeleteTask<ProfileIOData>(this)); |
| 538 if (!posted) | 538 if (!posted) |
| 539 delete this; | 539 delete this; |
| 540 } | 540 } |
| 541 | 541 |
| 542 void ProfileIOData::set_origin_bound_cert_service( | 542 void ProfileIOData::set_origin_bound_cert_service( |
| 543 net::OriginBoundCertService* origin_bound_cert_service) const { | 543 net::OriginBoundCertService* origin_bound_cert_service) const { |
| 544 origin_bound_cert_service_.reset(origin_bound_cert_service); | 544 origin_bound_cert_service_.reset(origin_bound_cert_service); |
| 545 } | 545 } |
| OLD | NEW |