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 CONTENT_BROWSER_FILEAPI_CHROME_BLOB_STORAGE_CONTEXT_H_ | 5 #ifndef CONTENT_BROWSER_FILEAPI_CHROME_BLOB_STORAGE_CONTEXT_H_ |
6 #define CONTENT_BROWSER_FILEAPI_CHROME_BLOB_STORAGE_CONTEXT_H_ | 6 #define CONTENT_BROWSER_FILEAPI_CHROME_BLOB_STORAGE_CONTEXT_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
11 #include "base/sequenced_task_runner_helpers.h" | 10 #include "base/sequenced_task_runner_helpers.h" |
12 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
13 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
14 | 13 |
15 namespace content { | 14 namespace content { |
16 class BrowserContext; | 15 class BrowserContext; |
17 } | 16 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 scoped_ptr<webkit_blob::BlobStorageController> controller_; | 57 scoped_ptr<webkit_blob::BlobStorageController> controller_; |
59 }; | 58 }; |
60 | 59 |
61 struct ChromeBlobStorageContextDeleter { | 60 struct ChromeBlobStorageContextDeleter { |
62 static void Destruct(const ChromeBlobStorageContext* context) { | 61 static void Destruct(const ChromeBlobStorageContext* context) { |
63 context->DeleteOnCorrectThread(); | 62 context->DeleteOnCorrectThread(); |
64 } | 63 } |
65 }; | 64 }; |
66 | 65 |
67 #endif // CONTENT_BROWSER_FILEAPI_CHROME_BLOB_STORAGE_CONTEXT_H_ | 66 #endif // CONTENT_BROWSER_FILEAPI_CHROME_BLOB_STORAGE_CONTEXT_H_ |
OLD | NEW |