Don't send a SHChangeNotify for creating an app icon when creating a shortcut.
[chromium-blink-merge.git] / content / renderer / media / peer_connection_identity_service.h
blob91b12ef12fd91a16d7efd9a31e7981397ae63340
1 // Copyright 2013 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.
5 #ifndef CONTENT_RENDERER_MEDIA_PEER_CONNECTION_IDENTITY_SERVICE_H_
6 #define CONTENT_RENDERER_MEDIA_PEER_CONNECTION_IDENTITY_SERVICE_H_
8 #include <string>
9 #include <vector>
11 #include "base/basictypes.h"
12 #include "base/single_thread_task_runner.h"
13 #include "base/threading/thread_checker.h"
14 #include "content/public/renderer/render_process_observer.h"
15 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h"
16 #include "url/gurl.h"
18 namespace content {
20 // This class is associated with a peer connection and handles WebRTC DTLS
21 // identity requests by delegating to the per-renderer WebRTCIdentityProxy.
22 class PeerConnectionIdentityService
23 : public webrtc::DTLSIdentityServiceInterface {
24 public:
25 explicit PeerConnectionIdentityService(const GURL& origin);
27 ~PeerConnectionIdentityService() override;
29 // webrtc::DTLSIdentityServiceInterface implementation.
30 bool RequestIdentity(const std::string& identity_name,
31 const std::string& common_name,
32 webrtc::DTLSIdentityRequestObserver* observer) override;
34 private:
35 base::ThreadChecker signaling_thread_;
37 const scoped_refptr<base::SingleThreadTaskRunner> main_thread_;
39 // The origin of the DTLS connection.
40 const GURL origin_;
42 DISALLOW_COPY_AND_ASSIGN(PeerConnectionIdentityService);
45 } // namespace content
47 #endif // CONTENT_RENDERER_MEDIA_PEER_CONNECTION_IDENTITY_SERVICE_H_