Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(619)

Side by Side Diff: chrome/browser/ui/webui/quota_internals_proxy.h

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
(...skipping 11 matching lines...) Expand all
22 class QuotaInternalsHandler; 22 class QuotaInternalsHandler;
23 class GlobalStorageInfo; 23 class GlobalStorageInfo;
24 class PerHostStorageInfo; 24 class PerHostStorageInfo;
25 class PerOriginStorageInfo; 25 class PerOriginStorageInfo;
26 typedef std::map<std::string, std::string> Statistics; 26 typedef std::map<std::string, std::string> Statistics;
27 27
28 // This class is the bridge between QuotaInternalsHandler and QuotaManager. 28 // This class is the bridge between QuotaInternalsHandler and QuotaManager.
29 // Each QuotaInternalsHandler instances creates and owns a instance of this 29 // Each QuotaInternalsHandler instances creates and owns a instance of this
30 // class. 30 // class.
31 class QuotaInternalsProxy 31 class QuotaInternalsProxy
32 : public base::RefCountedThreadSafe<QuotaInternalsProxy, 32 : public base::RefCountedThreadSafe<
33 BrowserThread::DeleteOnIOThread> { 33 QuotaInternalsProxy,
34 content::BrowserThread::DeleteOnIOThread> {
34 public: 35 public:
35 explicit QuotaInternalsProxy(QuotaInternalsHandler* handler); 36 explicit QuotaInternalsProxy(QuotaInternalsHandler* handler);
36 ~QuotaInternalsProxy(); 37 ~QuotaInternalsProxy();
37 38
38 void RequestInfo(scoped_refptr<quota::QuotaManager> quota_manager); 39 void RequestInfo(scoped_refptr<quota::QuotaManager> quota_manager);
39 40
40 private: 41 private:
41 typedef quota::QuotaManager::QuotaTableEntries QuotaTableEntries; 42 typedef quota::QuotaManager::QuotaTableEntries QuotaTableEntries;
42 typedef quota::QuotaManager::OriginInfoTableEntries OriginInfoTableEntries; 43 typedef quota::QuotaManager::OriginInfoTableEntries OriginInfoTableEntries;
43 44
(...skipping 26 matching lines...) Expand all
70 QuotaInternalsHandler* handler_; 71 QuotaInternalsHandler* handler_;
71 72
72 // Used on IO Thread. 73 // Used on IO Thread.
73 base::WeakPtrFactory<QuotaInternalsProxy> weak_factory_; 74 base::WeakPtrFactory<QuotaInternalsProxy> weak_factory_;
74 scoped_refptr<quota::QuotaManager> quota_manager_; 75 scoped_refptr<quota::QuotaManager> quota_manager_;
75 std::set<std::pair<std::string, quota::StorageType> > 76 std::set<std::pair<std::string, quota::StorageType> >
76 hosts_visited_, hosts_pending_; 77 hosts_visited_, hosts_pending_;
77 std::vector<PerHostStorageInfo> report_pending_; 78 std::vector<PerHostStorageInfo> report_pending_;
78 79
79 friend class QuotaInternalsHandler; 80 friend class QuotaInternalsHandler;
80 friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; 81 friend struct content::BrowserThread::DeleteOnThread<
82 content::BrowserThread::IO>;
81 friend class DeleteTask<QuotaInternalsProxy>; 83 friend class DeleteTask<QuotaInternalsProxy>;
82 84
83 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsProxy); 85 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsProxy);
84 }; 86 };
85 } // quota_internals 87 } // quota_internals
86 88
87 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ 89 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview_handler.cc ('k') | chrome/browser/ui/webui/quota_internals_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698