| 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 #ifndef STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_FACTORY_H_ | 5 #ifndef STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_FACTORY_H_ |
| 6 #define STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_FACTORY_H_ | 6 #define STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 scoped_ptr<BlobDataHandle> blob_data_handle); | 46 scoped_ptr<BlobDataHandle> blob_data_handle); |
| 47 | 47 |
| 48 BlobProtocolHandler( | 48 BlobProtocolHandler( |
| 49 BlobStorageContext* context, | 49 BlobStorageContext* context, |
| 50 storage::FileSystemContext* file_system_context, | 50 storage::FileSystemContext* file_system_context, |
| 51 const scoped_refptr<base::MessageLoopProxy>& file_loop_proxy); | 51 const scoped_refptr<base::MessageLoopProxy>& file_loop_proxy); |
| 52 virtual ~BlobProtocolHandler(); | 52 virtual ~BlobProtocolHandler(); |
| 53 | 53 |
| 54 virtual net::URLRequestJob* MaybeCreateJob( | 54 virtual net::URLRequestJob* MaybeCreateJob( |
| 55 net::URLRequest* request, | 55 net::URLRequest* request, |
| 56 net::NetworkDelegate* network_delegate) const OVERRIDE; | 56 net::NetworkDelegate* network_delegate) const override; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 scoped_refptr<BlobData> LookupBlobData( | 59 scoped_refptr<BlobData> LookupBlobData( |
| 60 net::URLRequest* request) const; | 60 net::URLRequest* request) const; |
| 61 | 61 |
| 62 base::WeakPtr<BlobStorageContext> context_; | 62 base::WeakPtr<BlobStorageContext> context_; |
| 63 const scoped_refptr<storage::FileSystemContext> file_system_context_; | 63 const scoped_refptr<storage::FileSystemContext> file_system_context_; |
| 64 const scoped_refptr<base::MessageLoopProxy> file_loop_proxy_; | 64 const scoped_refptr<base::MessageLoopProxy> file_loop_proxy_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(BlobProtocolHandler); | 66 DISALLOW_COPY_AND_ASSIGN(BlobProtocolHandler); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace storage | 69 } // namespace storage |
| 70 | 70 |
| 71 #endif // STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_FACTORY_H_ | 71 #endif // STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_FACTORY_H_ |
| OLD | NEW |