| 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 #include "content/browser/resource_context_impl.h" | 5 #include "content/browser/resource_context_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 10 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
| 9 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 11 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 10 #include "content/browser/loader/resource_request_info_impl.h" | 12 #include "content/browser/loader/resource_request_info_impl.h" |
| 11 #include "content/browser/streams/stream_context.h" | 13 #include "content/browser/streams/stream_context.h" |
| 12 #include "content/browser/webui/url_data_manager_backend.h" | 14 #include "content/browser/webui/url_data_manager_backend.h" |
| 13 #include "content/public/browser/browser_context.h" | 15 #include "content/public/browser/browser_context.h" |
| 14 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
| 15 #include "net/base/keygen_handler.h" | 17 #include "net/base/keygen_handler.h" |
| 16 #include "net/ssl/client_cert_store.h" | 18 #include "net/ssl/client_cert_store.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 54 |
| 53 ResourceContext::SaltCallback ResourceContext::GetMediaDeviceIDSalt() { | 55 ResourceContext::SaltCallback ResourceContext::GetMediaDeviceIDSalt() { |
| 54 return base::Bind(&ReturnEmptySalt); | 56 return base::Bind(&ReturnEmptySalt); |
| 55 } | 57 } |
| 56 | 58 |
| 57 scoped_ptr<net::ClientCertStore> ResourceContext::CreateClientCertStore() { | 59 scoped_ptr<net::ClientCertStore> ResourceContext::CreateClientCertStore() { |
| 58 return scoped_ptr<net::ClientCertStore>(); | 60 return scoped_ptr<net::ClientCertStore>(); |
| 59 } | 61 } |
| 60 | 62 |
| 61 void ResourceContext::CreateKeygenHandler( | 63 void ResourceContext::CreateKeygenHandler( |
| 62 uint32 key_size_in_bits, | 64 uint32_t key_size_in_bits, |
| 63 const std::string& challenge_string, | 65 const std::string& challenge_string, |
| 64 const GURL& url, | 66 const GURL& url, |
| 65 const base::Callback<void(scoped_ptr<net::KeygenHandler>)>& callback) { | 67 const base::Callback<void(scoped_ptr<net::KeygenHandler>)>& callback) { |
| 66 callback.Run(make_scoped_ptr( | 68 callback.Run(make_scoped_ptr( |
| 67 new net::KeygenHandler(key_size_in_bits, challenge_string, url))); | 69 new net::KeygenHandler(key_size_in_bits, challenge_string, url))); |
| 68 } | 70 } |
| 69 | 71 |
| 70 ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext( | 72 ChromeBlobStorageContext* GetChromeBlobStorageContextForResourceContext( |
| 71 const ResourceContext* resource_context) { | 73 const ResourceContext* resource_context) { |
| 72 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 74 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 102 | 104 |
| 103 resource_context->SetUserData( | 105 resource_context->SetUserData( |
| 104 kStreamContextKeyName, | 106 kStreamContextKeyName, |
| 105 new UserDataAdapter<StreamContext>( | 107 new UserDataAdapter<StreamContext>( |
| 106 StreamContext::GetFor(browser_context))); | 108 StreamContext::GetFor(browser_context))); |
| 107 | 109 |
| 108 resource_context->DetachUserDataThread(); | 110 resource_context->DetachUserDataThread(); |
| 109 } | 111 } |
| 110 | 112 |
| 111 } // namespace content | 113 } // namespace content |
| OLD | NEW |