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

Side by Side Diff: chrome/browser/net/quota_policy_channel_id_store.h

Issue 1476263004: Remove ScopedVector from IDStores (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 5 years 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 | « no previous file | chrome/browser/net/quota_policy_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 CHROME_BROWSER_NET_QUOTA_POLICY_CHANNEL_ID_STORE_H_ 5 #ifndef CHROME_BROWSER_NET_QUOTA_POLICY_CHANNEL_ID_STORE_H_
6 #define CHROME_BROWSER_NET_QUOTA_POLICY_CHANNEL_ID_STORE_H_ 6 #define CHROME_BROWSER_NET_QUOTA_POLICY_CHANNEL_ID_STORE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector>
10 11
11 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
12 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
13 #include "base/macros.h" 14 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/scoped_vector.h" 17 #include "base/memory/scoped_vector.h"
17 #include "net/extras/sqlite/sqlite_channel_id_store.h" 18 #include "net/extras/sqlite/sqlite_channel_id_store.h"
18 #include "net/ssl/default_channel_id_store.h" 19 #include "net/ssl/default_channel_id_store.h"
19 20
(...skipping 23 matching lines...) Expand all
43 44
44 // net::DefaultChannelIDStore::PersistentStore: 45 // net::DefaultChannelIDStore::PersistentStore:
45 void Load(const LoadedCallback& loaded_callback) override; 46 void Load(const LoadedCallback& loaded_callback) override;
46 void AddChannelID( 47 void AddChannelID(
47 const net::DefaultChannelIDStore::ChannelID& channel_id) override; 48 const net::DefaultChannelIDStore::ChannelID& channel_id) override;
48 void DeleteChannelID( 49 void DeleteChannelID(
49 const net::DefaultChannelIDStore::ChannelID& channel_id) override; 50 const net::DefaultChannelIDStore::ChannelID& channel_id) override;
50 void SetForceKeepSessionState() override; 51 void SetForceKeepSessionState() override;
51 52
52 private: 53 private:
53 typedef ScopedVector<net::DefaultChannelIDStore::ChannelID> ChannelIDVector; 54 typedef std::vector<scoped_ptr<net::DefaultChannelIDStore::ChannelID>>
55 ChannelIDVector;
54 56
55 ~QuotaPolicyChannelIDStore() override; 57 ~QuotaPolicyChannelIDStore() override;
56 58
57 void OnLoad(const LoadedCallback& loaded_callback, 59 void OnLoad(const LoadedCallback& loaded_callback,
58 scoped_ptr<ChannelIDVector> channel_ids); 60 scoped_ptr<ChannelIDVector> channel_ids);
59 61
60 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 62 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
61 scoped_refptr<net::SQLiteChannelIDStore> persistent_store_; 63 scoped_refptr<net::SQLiteChannelIDStore> persistent_store_;
62 // Cache of server identifiers we have channel IDs stored for. 64 // Cache of server identifiers we have channel IDs stored for.
63 std::set<std::string> server_identifiers_; 65 std::set<std::string> server_identifiers_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(QuotaPolicyChannelIDStore); 67 DISALLOW_COPY_AND_ASSIGN(QuotaPolicyChannelIDStore);
66 }; 68 };
67 69
68 #endif // CHROME_BROWSER_NET_QUOTA_POLICY_CHANNEL_ID_STORE_H_ 70 #endif // CHROME_BROWSER_NET_QUOTA_POLICY_CHANNEL_ID_STORE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/quota_policy_channel_id_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698