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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_local_storage_helper.h

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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) 2012 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_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
8 #include <list> 11 #include <list>
9 #include <set> 12 #include <set>
10 13
11 #include "base/basictypes.h"
12 #include "base/callback.h" 14 #include "base/callback.h"
13 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
15 #include "base/time/time.h" 18 #include "base/time/time.h"
16 #include "content/public/browser/dom_storage_context.h" 19 #include "content/public/browser/dom_storage_context.h"
17 #include "url/gurl.h" 20 #include "url/gurl.h"
18 21
19 class Profile; 22 class Profile;
20 23
21 // This class fetches local storage information and provides a 24 // This class fetches local storage information and provides a
22 // means to delete the data associated with an origin. 25 // means to delete the data associated with an origin.
23 class BrowsingDataLocalStorageHelper 26 class BrowsingDataLocalStorageHelper
24 : public base::RefCounted<BrowsingDataLocalStorageHelper> { 27 : public base::RefCounted<BrowsingDataLocalStorageHelper> {
25 public: 28 public:
26 // Contains detailed information about local storage. 29 // Contains detailed information about local storage.
27 struct LocalStorageInfo { 30 struct LocalStorageInfo {
28 LocalStorageInfo( 31 LocalStorageInfo(const GURL& origin_url,
29 const GURL& origin_url, 32 int64_t size,
30 int64 size, 33 base::Time last_modified);
31 base::Time last_modified);
32 ~LocalStorageInfo(); 34 ~LocalStorageInfo();
33 35
34 GURL origin_url; 36 GURL origin_url;
35 int64 size; 37 int64_t size;
36 base::Time last_modified; 38 base::Time last_modified;
37 }; 39 };
38 40
39 using FetchCallback = 41 using FetchCallback =
40 base::Callback<void(const std::list<LocalStorageInfo>&)>; 42 base::Callback<void(const std::list<LocalStorageInfo>&)>;
41 43
42 explicit BrowsingDataLocalStorageHelper(Profile* profile); 44 explicit BrowsingDataLocalStorageHelper(Profile* profile);
43 45
44 // Starts the fetching process, which will notify its completion via 46 // Starts the fetching process, which will notify its completion via
45 // callback. This must be called only in the UI thread. 47 // callback. This must be called only in the UI thread.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 90
89 private: 91 private:
90 ~CannedBrowsingDataLocalStorageHelper() override; 92 ~CannedBrowsingDataLocalStorageHelper() override;
91 93
92 std::set<GURL> pending_local_storage_info_; 94 std::set<GURL> pending_local_storage_info_;
93 95
94 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper); 96 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper);
95 }; 97 };
96 98
97 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ 99 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698