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

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

Issue 2370001: Store blocked cookies in the tab contents. (Closed)
Patch Set: updates Created 10 years, 5 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // passed as a parameter during construction. 110 // passed as a parameter during construction.
111 class CannedBrowsingDataLocalStorageHelper 111 class CannedBrowsingDataLocalStorageHelper
112 : public BrowsingDataLocalStorageHelper { 112 : public BrowsingDataLocalStorageHelper {
113 public: 113 public:
114 explicit CannedBrowsingDataLocalStorageHelper(Profile* profile); 114 explicit CannedBrowsingDataLocalStorageHelper(Profile* profile);
115 115
116 // Add a local storage to the set of canned local storages that is returned 116 // Add a local storage to the set of canned local storages that is returned
117 // by this helper. 117 // by this helper.
118 void AddLocalStorage(const GURL& origin); 118 void AddLocalStorage(const GURL& origin);
119 119
120 // Clear the list of canned local storages.
121 void Reset();
122
120 // BrowsingDataLocalStorageHelper methods. 123 // BrowsingDataLocalStorageHelper methods.
121 virtual void StartFetching( 124 virtual void StartFetching(
122 Callback1<const std::vector<LocalStorageInfo>& >::Type* callback); 125 Callback1<const std::vector<LocalStorageInfo>& >::Type* callback);
123 virtual void CancelNotification() {} 126 virtual void CancelNotification() {}
124 127
125 private: 128 private:
126 virtual ~CannedBrowsingDataLocalStorageHelper() {} 129 virtual ~CannedBrowsingDataLocalStorageHelper() {}
127 130
128 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper); 131 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataLocalStorageHelper);
129 }; 132 };
130 133
131 #endif // CHROME_BROWSER_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_ 134 #endif // CHROME_BROWSER_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698