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

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

Issue 9700007: ContentAPI change - Post DomStorage tasks via a SequencedTaskRunner instead of directly to WEBKIT_DE (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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) 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_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>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // BrowsingDataLocalStorageHelper implementation. 133 // BrowsingDataLocalStorageHelper implementation.
134 virtual void StartFetching( 134 virtual void StartFetching(
135 const base::Callback<void(const std::list<LocalStorageInfo>&)>& callback) 135 const base::Callback<void(const std::list<LocalStorageInfo>&)>& callback)
136 OVERRIDE; 136 OVERRIDE;
137 virtual void CancelNotification() OVERRIDE {} 137 virtual void CancelNotification() OVERRIDE {}
138 138
139 private: 139 private:
140 virtual ~CannedBrowsingDataLocalStorageHelper(); 140 virtual ~CannedBrowsingDataLocalStorageHelper();
141 141
142 // Convert the pending local storage info to local storage info objects. 142 // Convert the pending local storage info to local storage info objects.
143 void ConvertPendingInfoInWebKitThread(); 143 void ConvertPendingInfo();
144 144
145 // Used to protect access to pending_local_storage_info_.
146 mutable base::Lock lock_;
michaeln 2012/03/14 05:17:26 n/a since this class is now single-threaded
147
148 // May mutate on WEBKIT and UI threads.
149 std::set<GURL> pending_local_storage_info_; 145 std::set<GURL> pending_local_storage_info_;
150 146
151 Profile* profile_; 147 Profile* profile_;
152 148
153 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper); 149 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper);
154 }; 150 };
155 151
156 #endif // CHROME_BROWSER_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ 152 #endif // CHROME_BROWSER_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698