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

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

Issue 523139: Adds local storage nodes to cookie tree model and cookies view. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 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
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_MOCK_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_
6 #define CHROME_BROWSER_MOCK_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_
7
8 #include "chrome/browser/browsing_data_local_storage_helper.h"
9
10 // Mock for BrowsingDataLocalStorageHelper.
11 // Use AddLocalStorageSamples() or add directly to response_ vector, then
12 // call Notify().
13 class MockBrowsingDataLocalStorageHelper
14 : public BrowsingDataLocalStorageHelper {
15 public:
16 explicit MockBrowsingDataLocalStorageHelper(Profile* profile);
17
18 virtual void StartFetching(
19 Callback1<const std::vector<LocalStorageInfo>& >::Type* callback);
20 virtual void CancelNotification();
21 virtual void DeleteLocalStorageFile(const FilePath& file_path);
22 virtual void DeleteAllLocalStorageFiles();
23
24 // Adds some LocalStorageInfo samples.
25 void AddLocalStorageSamples();
26
27 // Notifies the callback.
28 void Notify();
29
30 Profile* profile_;
31 Callback1<const std::vector<LocalStorageInfo>& >::Type* callback_;
32 FilePath last_deleted_file_;
33 bool delete_all_files_called_;
34 std::vector<LocalStorageInfo> response_;
35 };
36
37 #endif // CHROME_BROWSER_MOCK_BROWSING_DATA_LOCAL_STORAGE_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/in_process_webkit/dom_storage_context.cc ('k') | chrome/browser/mock_browsing_data_local_storage_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698