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

Side by Side Diff: chrome/browser/extensions/api/gcd_private/privet_v3_session.h

Issue 2310683002: Remove most ScopedVector usage from c/b/extensions. (Closed)
Patch Set: remove scoped_vector includes Created 4 years, 3 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 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_EXTENSIONS_API_GCD_PRIVATE_PRIVET_V3_SESSION_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_PRIVET_V3_SESSION_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_PRIVET_V3_SESSION_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_PRIVET_V3_SESSION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/scoped_vector.h"
17 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
18 #include "chrome/common/extensions/api/gcd_private.h" 17 #include "chrome/common/extensions/api/gcd_private.h"
19 #include "net/url_request/url_fetcher.h" 18 #include "net/url_request/url_fetcher.h"
20 19
21 namespace base { 20 namespace base {
22 class DictionaryValue; 21 class DictionaryValue;
23 } 22 }
24 23
25 namespace crypto { 24 namespace crypto {
26 class P224EncryptedKeyExchange; 25 class P224EncryptedKeyExchange;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Key exchange algorithm for pairing. 117 // Key exchange algorithm for pairing.
119 std::unique_ptr<crypto::P224EncryptedKeyExchange> spake_; 118 std::unique_ptr<crypto::P224EncryptedKeyExchange> spake_;
120 119
121 // HTTPS port of the device. 120 // HTTPS port of the device.
122 uint16_t https_port_ = 0; 121 uint16_t https_port_ = 0;
123 122
124 // If true, HTTPS will be used. 123 // If true, HTTPS will be used.
125 bool use_https_ = false; 124 bool use_https_ = false;
126 125
127 // List of fetches to cancel when session is destroyed. 126 // List of fetches to cancel when session is destroyed.
128 ScopedVector<FetcherDelegate> fetchers_; 127 std::vector<std::unique_ptr<FetcherDelegate>> fetchers_;
129 128
130 // Intercepts POST requests. Used by tests only. 129 // Intercepts POST requests. Used by tests only.
131 base::Callback<void(const base::DictionaryValue&)> on_post_data_; 130 base::Callback<void(const base::DictionaryValue&)> on_post_data_;
132 131
133 base::WeakPtrFactory<PrivetV3Session> weak_ptr_factory_; 132 base::WeakPtrFactory<PrivetV3Session> weak_ptr_factory_;
134 DISALLOW_COPY_AND_ASSIGN(PrivetV3Session); 133 DISALLOW_COPY_AND_ASSIGN(PrivetV3Session);
135 }; 134 };
136 135
137 } // namespace extensions 136 } // namespace extensions
138 137
139 #endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_PRIVET_V3_SESSION_H_ 138 #endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_PRIVET_V3_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698