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

Side by Side Diff: content/renderer/media/peer_connection_identity_store.h

Issue 2033353002: Remove PeerConnectionIdentityStore and related messaging/storage code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delayed deletion by 120s Created 4 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
(Empty)
1 // Copyright 2015 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 CONTENT_RENDERER_MEDIA_PEER_CONNECTION_IDENTITY_STORE_H_
6 #define CONTENT_RENDERER_MEDIA_PEER_CONNECTION_IDENTITY_STORE_H_
7
8 #include "base/macros.h"
9 #include "base/single_thread_task_runner.h"
10 #include "base/threading/thread_checker.h"
11 #include "third_party/webrtc/api/dtlsidentitystore.h"
12 #include "third_party/webrtc/base/optional.h"
13 #include "url/gurl.h"
14
15 namespace content {
16
17 // This class is associated with a peer connection and handles WebRTC DTLS
18 // identity requests by delegating to the per-renderer WebRTCIdentityProxy.
19 // TODO(hbos): Remove this store, it is no longer used.
20 // See bugs.webrtc.org/5707, bugs.webrtc.org/5708.
21 class PeerConnectionIdentityStore
22 : public webrtc::DtlsIdentityStoreInterface {
23 public:
24 PeerConnectionIdentityStore(
25 const scoped_refptr<base::SingleThreadTaskRunner>& main_thread,
26 const scoped_refptr<base::SingleThreadTaskRunner>& signaling_thread,
27 const GURL& origin,
28 const GURL& first_party_for_cookies);
29 ~PeerConnectionIdentityStore() override;
30
31 // webrtc::DtlsIdentityStoreInterface override;
32 void RequestIdentity(
33 const rtc::KeyParams& key_params,
34 const rtc::Optional<uint64_t>& expires_ms,
35 const rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>& observer)
36 override;
37
38 private:
39 const scoped_refptr<base::SingleThreadTaskRunner> main_thread_;
40 const scoped_refptr<base::SingleThreadTaskRunner> signaling_thread_;
41 const GURL url_;
42 const GURL first_party_for_cookies_;
43
44 DISALLOW_COPY_AND_ASSIGN(PeerConnectionIdentityStore);
45 };
46
47 } // namespace content
48
49 #endif // CONTENT_RENDERER_MEDIA_PEER_CONNECTION_IDENTITY_STORE_H_
OLDNEW
« no previous file with comments | « content/public/browser/storage_partition.h ('k') | content/renderer/media/peer_connection_identity_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698