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