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

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

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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_TYPES_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_TYPES_H_
6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_TYPES_H_ 6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_TYPES_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 storage::StorageType type_; 63 storage::StorageType type_;
64 64
65 int64_t usage_; 65 int64_t usage_;
66 int64_t quota_; 66 int64_t quota_;
67 }; 67 };
68 68
69 // Represendts per origin usage and access time information. 69 // Represendts per origin usage and access time information.
70 class PerOriginStorageInfo { 70 class PerOriginStorageInfo {
71 public: 71 public:
72 PerOriginStorageInfo(const GURL& origin, storage::StorageType type); 72 PerOriginStorageInfo(const GURL& origin, storage::StorageType type);
73 PerOriginStorageInfo(const PerOriginStorageInfo& other);
73 ~PerOriginStorageInfo(); 74 ~PerOriginStorageInfo();
74 75
75 void set_in_use(bool in_use) { 76 void set_in_use(bool in_use) {
76 in_use_ = in_use ? 1 : 0; 77 in_use_ = in_use ? 1 : 0;
77 } 78 }
78 79
79 void set_used_count(int used_count) { 80 void set_used_count(int used_count) {
80 used_count_ = used_count; 81 used_count_ = used_count;
81 } 82 }
82 83
(...skipping 14 matching lines...) Expand all
97 std::string host_; 98 std::string host_;
98 99
99 int in_use_; 100 int in_use_;
100 int used_count_; 101 int used_count_;
101 base::Time last_access_time_; 102 base::Time last_access_time_;
102 base::Time last_modified_time_; 103 base::Time last_modified_time_;
103 }; 104 };
104 } // namespace quota_internals 105 } // namespace quota_internals
105 106
106 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_TYPES_H_ 107 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698