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

Side by Side Diff: net/extras/sqlite/sqlite_channel_id_store.h

Issue 2874973002: Flush Channel IDs when Cookies get saved to a persistent backend (Closed)
Patch Set: Initialize channel_id_service to nullptr Created 3 years, 7 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
« no previous file with comments | « net/cookies/cookie_monster_unittest.cc ('k') | net/extras/sqlite/sqlite_channel_id_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 NET_EXTRAS_SQLITE_SQLITE_CHANNEL_ID_STORE_H_ 5 #ifndef NET_EXTRAS_SQLITE_SQLITE_CHANNEL_ID_STORE_H_
6 #define NET_EXTRAS_SQLITE_SQLITE_CHANNEL_ID_STORE_H_ 6 #define NET_EXTRAS_SQLITE_SQLITE_CHANNEL_ID_STORE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 22 matching lines...) Expand all
33 const base::FilePath& path, 33 const base::FilePath& path,
34 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner); 34 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner);
35 35
36 // DefaultChannelIDStore::PersistentStore: 36 // DefaultChannelIDStore::PersistentStore:
37 void Load(const LoadedCallback& loaded_callback) override; 37 void Load(const LoadedCallback& loaded_callback) override;
38 void AddChannelID( 38 void AddChannelID(
39 const DefaultChannelIDStore::ChannelID& channel_id) override; 39 const DefaultChannelIDStore::ChannelID& channel_id) override;
40 void DeleteChannelID( 40 void DeleteChannelID(
41 const DefaultChannelIDStore::ChannelID& channel_id) override; 41 const DefaultChannelIDStore::ChannelID& channel_id) override;
42 void SetForceKeepSessionState() override; 42 void SetForceKeepSessionState() override;
43 void Flush() override;
43 44
44 // Delete channel ids from servers in |server_identifiers|. 45 // Delete channel ids from servers in |server_identifiers|.
45 void DeleteAllInList(const std::list<std::string>& server_identifiers); 46 void DeleteAllInList(const std::list<std::string>& server_identifiers);
46 47
47 private: 48 private:
48 ~SQLiteChannelIDStore() override; 49 ~SQLiteChannelIDStore() override;
49 50
50 class Backend; 51 class Backend;
51 52
52 scoped_refptr<Backend> backend_; 53 scoped_refptr<Backend> backend_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(SQLiteChannelIDStore); 55 DISALLOW_COPY_AND_ASSIGN(SQLiteChannelIDStore);
55 }; 56 };
56 57
57 } // namespace net 58 } // namespace net
58 59
59 #endif // NET_EXTRAS_SQLITE_SQLITE_CHANNEL_ID_STORE_H_ 60 #endif // NET_EXTRAS_SQLITE_SQLITE_CHANNEL_ID_STORE_H_
OLDNEW
« no previous file with comments | « net/cookies/cookie_monster_unittest.cc ('k') | net/extras/sqlite/sqlite_channel_id_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698