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 CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CONTEXT_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CONTEXT_H_ |
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CONTEXT_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CONTEXT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "content/browser/browser_thread.h" | 18 #include "content/browser/browser_thread.h" |
| 19 #include "content/common/content_export.h" |
19 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
20 | 21 |
21 class GURL; | 22 class GURL; |
22 class FilePath; | 23 class FilePath; |
23 class WebKitContext; | 24 class WebKitContext; |
24 | 25 |
25 namespace WebKit { | 26 namespace WebKit { |
26 class WebIDBFactory; | 27 class WebIDBFactory; |
27 } | 28 } |
28 | 29 |
29 namespace base { | 30 namespace base { |
30 class MessageLoopProxy; | 31 class MessageLoopProxy; |
31 } | 32 } |
32 | 33 |
33 namespace quota { | 34 namespace quota { |
34 class QuotaManagerProxy; | 35 class QuotaManagerProxy; |
35 class SpecialStoragePolicy; | 36 class SpecialStoragePolicy; |
36 } | 37 } |
37 | 38 |
38 class IndexedDBContext : public base::RefCountedThreadSafe<IndexedDBContext> { | 39 class CONTENT_EXPORT IndexedDBContext |
| 40 : public base::RefCountedThreadSafe<IndexedDBContext> { |
39 public: | 41 public: |
40 IndexedDBContext(WebKitContext* webkit_context, | 42 IndexedDBContext(WebKitContext* webkit_context, |
41 quota::SpecialStoragePolicy* special_storage_policy, | 43 quota::SpecialStoragePolicy* special_storage_policy, |
42 quota::QuotaManagerProxy* quota_manager_proxy, | 44 quota::QuotaManagerProxy* quota_manager_proxy, |
43 base::MessageLoopProxy* webkit_thread_loop); | 45 base::MessageLoopProxy* webkit_thread_loop); |
44 | 46 |
45 ~IndexedDBContext(); | 47 ~IndexedDBContext(); |
46 | 48 |
47 WebKit::WebIDBFactory* GetIDBFactory(); | 49 WebKit::WebIDBFactory* GetIDBFactory(); |
48 | 50 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; | 119 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; |
118 scoped_ptr<std::set<GURL> > origin_set_; | 120 scoped_ptr<std::set<GURL> > origin_set_; |
119 OriginToSizeMap origin_size_map_; | 121 OriginToSizeMap origin_size_map_; |
120 OriginToSizeMap space_available_map_; | 122 OriginToSizeMap space_available_map_; |
121 std::map<GURL, unsigned int> connection_count_; | 123 std::map<GURL, unsigned int> connection_count_; |
122 | 124 |
123 DISALLOW_COPY_AND_ASSIGN(IndexedDBContext); | 125 DISALLOW_COPY_AND_ASSIGN(IndexedDBContext); |
124 }; | 126 }; |
125 | 127 |
126 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CONTEXT_H_ | 128 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CONTEXT_H_ |
OLD | NEW |