OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
(...skipping 26 matching lines...) Expand all Loading... |
38 const std::string& protocol, | 38 const std::string& protocol, |
39 const std::string& host, | 39 const std::string& host, |
40 unsigned short port, | 40 unsigned short port, |
41 const std::string& database_identifier, | 41 const std::string& database_identifier, |
42 const std::string& origin, | 42 const std::string& origin, |
43 const FilePath& file_path, | 43 const FilePath& file_path, |
44 int64 size, | 44 int64 size, |
45 base::Time last_modified); | 45 base::Time last_modified); |
46 ~LocalStorageInfo(); | 46 ~LocalStorageInfo(); |
47 | 47 |
48 bool IsFileSchemeData() { | |
49 return protocol == chrome::kFileScheme; | |
50 } | |
51 | |
52 std::string protocol; | 48 std::string protocol; |
53 std::string host; | 49 std::string host; |
54 unsigned short port; | 50 unsigned short port; |
55 std::string database_identifier; | 51 std::string database_identifier; |
56 std::string origin; | 52 std::string origin; |
57 FilePath file_path; | 53 FilePath file_path; |
58 int64 size; | 54 int64 size; |
59 base::Time last_modified; | 55 base::Time last_modified; |
60 }; | 56 }; |
61 | 57 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 139 |
144 // May mutate on WEBKIT and UI threads. | 140 // May mutate on WEBKIT and UI threads. |
145 std::set<GURL> pending_local_storage_info_; | 141 std::set<GURL> pending_local_storage_info_; |
146 | 142 |
147 Profile* profile_; | 143 Profile* profile_; |
148 | 144 |
149 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper); | 145 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper); |
150 }; | 146 }; |
151 | 147 |
152 #endif // CHROME_BROWSER_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ | 148 #endif // CHROME_BROWSER_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ |
OLD | NEW |