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

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

Issue 6272025: Part 2 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright 2011 Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 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_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 <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
(...skipping 11 matching lines...) Expand all
23 // A client of this class need to call StartFetching from the UI thread to 23 // A client of this class need to call StartFetching from the UI thread to
24 // initiate the flow, and it'll be notified by the callback in its UI 24 // initiate the flow, and it'll be notified by the callback in its UI
25 // thread at some later point. 25 // thread at some later point.
26 // The client must call CancelNotification() if it's destroyed before the 26 // The client must call CancelNotification() if it's destroyed before the
27 // callback is notified. 27 // callback is notified.
28 class BrowsingDataLocalStorageHelper 28 class BrowsingDataLocalStorageHelper
29 : public base::RefCountedThreadSafe<BrowsingDataLocalStorageHelper> { 29 : public base::RefCountedThreadSafe<BrowsingDataLocalStorageHelper> {
30 public: 30 public:
31 // Contains detailed information about local storage. 31 // Contains detailed information about local storage.
32 struct LocalStorageInfo { 32 struct LocalStorageInfo {
33 LocalStorageInfo() {} 33 LocalStorageInfo();
34 LocalStorageInfo( 34 LocalStorageInfo(
35 const std::string& protocol, 35 const std::string& protocol,
36 const std::string& host, 36 const std::string& host,
37 unsigned short port, 37 unsigned short port,
38 const std::string& database_identifier, 38 const std::string& database_identifier,
39 const std::string& origin, 39 const std::string& origin,
40 const FilePath& file_path, 40 const FilePath& file_path,
41 int64 size, 41 int64 size,
42 base::Time last_modified) 42 base::Time last_modified);
43 : protocol(protocol), 43 ~LocalStorageInfo();
44 host(host),
45 port(port),
46 database_identifier(database_identifier),
47 origin(origin),
48 file_path(file_path),
49 size(size),
50 last_modified(last_modified) {
51 }
52 44
53 bool IsFileSchemeData() { 45 bool IsFileSchemeData() {
54 return protocol == chrome::kFileScheme; 46 return protocol == chrome::kFileScheme;
55 } 47 }
56 48
57 std::string protocol; 49 std::string protocol;
58 std::string host; 50 std::string host;
59 unsigned short port; 51 unsigned short port;
60 std::string database_identifier; 52 std::string database_identifier;
61 std::string origin; 53 std::string origin;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 Callback1<const std::vector<LocalStorageInfo>& >::Type* callback); 122 Callback1<const std::vector<LocalStorageInfo>& >::Type* callback);
131 virtual void CancelNotification() {} 123 virtual void CancelNotification() {}
132 124
133 private: 125 private:
134 virtual ~CannedBrowsingDataLocalStorageHelper() {} 126 virtual ~CannedBrowsingDataLocalStorageHelper() {}
135 127
136 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper); 128 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper);
137 }; 129 };
138 130
139 #endif // CHROME_BROWSER_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ 131 #endif // CHROME_BROWSER_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.cc ('k') | chrome/browser/browsing_data_local_storage_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698