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

Side by Side Diff: chrome/browser/ui/webui/quota_internals/quota_internals_handler.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
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_QUOTA_INTERNALS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 13 matching lines...) Expand all
24 class GlobalStorageInfo; 24 class GlobalStorageInfo;
25 class PerHostStorageInfo; 25 class PerHostStorageInfo;
26 class PerOriginStorageInfo; 26 class PerOriginStorageInfo;
27 typedef std::map<std::string, std::string> Statistics; 27 typedef std::map<std::string, std::string> Statistics;
28 28
29 // This class handles message from WebUI page of chrome://quota-internals/. 29 // This class handles message from WebUI page of chrome://quota-internals/.
30 // All methods in this class should be called on UI thread. 30 // All methods in this class should be called on UI thread.
31 class QuotaInternalsHandler : public content::WebUIMessageHandler { 31 class QuotaInternalsHandler : public content::WebUIMessageHandler {
32 public: 32 public:
33 QuotaInternalsHandler(); 33 QuotaInternalsHandler();
34 virtual ~QuotaInternalsHandler(); 34 ~QuotaInternalsHandler() override;
35 virtual void RegisterMessages() override; 35 void RegisterMessages() override;
36 36
37 // Called by QuotaInternalsProxy to report information to WebUI page. 37 // Called by QuotaInternalsProxy to report information to WebUI page.
38 void ReportAvailableSpace(int64 available_space); 38 void ReportAvailableSpace(int64 available_space);
39 void ReportGlobalInfo(const GlobalStorageInfo& data); 39 void ReportGlobalInfo(const GlobalStorageInfo& data);
40 void ReportPerHostInfo(const std::vector<PerHostStorageInfo>& hosts); 40 void ReportPerHostInfo(const std::vector<PerHostStorageInfo>& hosts);
41 void ReportPerOriginInfo(const std::vector<PerOriginStorageInfo>& origins); 41 void ReportPerOriginInfo(const std::vector<PerOriginStorageInfo>& origins);
42 void ReportStatistics(const Statistics& stats); 42 void ReportStatistics(const Statistics& stats);
43 43
44 private: 44 private:
45 void OnRequestInfo(const base::ListValue*); 45 void OnRequestInfo(const base::ListValue*);
46 void SendMessage(const std::string& message, const base::Value& value); 46 void SendMessage(const std::string& message, const base::Value& value);
47 47
48 scoped_refptr<QuotaInternalsProxy> proxy_; 48 scoped_refptr<QuotaInternalsProxy> proxy_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsHandler); 50 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsHandler);
51 }; 51 };
52 } // namespace quota_internals 52 } // namespace quota_internals
53 53
54 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_HANDLER_H_ 54 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698