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 CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/message_loop_helpers.h" |
16 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
17 #include "webkit/quota/quota_manager.h" | 18 #include "webkit/quota/quota_manager.h" |
18 #include "webkit/quota/quota_types.h" | 19 #include "webkit/quota/quota_types.h" |
19 | 20 |
20 namespace quota_internals { | 21 namespace quota_internals { |
21 | 22 |
22 class QuotaInternalsHandler; | 23 class QuotaInternalsHandler; |
23 class GlobalStorageInfo; | 24 class GlobalStorageInfo; |
24 class PerHostStorageInfo; | 25 class PerHostStorageInfo; |
25 class PerOriginStorageInfo; | 26 class PerOriginStorageInfo; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Used on IO Thread. | 74 // Used on IO Thread. |
74 base::WeakPtrFactory<QuotaInternalsProxy> weak_factory_; | 75 base::WeakPtrFactory<QuotaInternalsProxy> weak_factory_; |
75 scoped_refptr<quota::QuotaManager> quota_manager_; | 76 scoped_refptr<quota::QuotaManager> quota_manager_; |
76 std::set<std::pair<std::string, quota::StorageType> > | 77 std::set<std::pair<std::string, quota::StorageType> > |
77 hosts_visited_, hosts_pending_; | 78 hosts_visited_, hosts_pending_; |
78 std::vector<PerHostStorageInfo> report_pending_; | 79 std::vector<PerHostStorageInfo> report_pending_; |
79 | 80 |
80 friend class QuotaInternalsHandler; | 81 friend class QuotaInternalsHandler; |
81 friend struct content::BrowserThread::DeleteOnThread< | 82 friend struct content::BrowserThread::DeleteOnThread< |
82 content::BrowserThread::IO>; | 83 content::BrowserThread::IO>; |
83 friend class DeleteTask<QuotaInternalsProxy>; | 84 friend class base::DeleteHelper<QuotaInternalsProxy>; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsProxy); | 86 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsProxy); |
86 }; | 87 }; |
87 } // quota_internals | 88 } // quota_internals |
88 | 89 |
89 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ | 90 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ |
OLD | NEW |