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

Side by Side Diff: components/devtools_bridge/session_dependency_factory.h

Issue 716433003: Continue impementation SessionDependencyFactoryNative. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@native-factory
Patch Set: Created 6 years, 1 month 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 2014 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 COMPONENTS_DEVTOOLS_BRIDGE_SESSION_DEPENDENCY_FACTORY_H_
6 #define COMPONENTS_DEVTOOLS_BRIDGE_SESSION_DEPENDENCY_FACTORY_H_
7
8 #import <string>
mnaganov (inactive) 2014/11/10 18:10:26 #import again. I thought this is some Objective-C
SeRya 2014/11/11 08:08:19 Done.
9
10 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "components/devtools_bridge/abstract_peer_connection.h"
13 #include "components/devtools_bridge/rtc_configuration.h"
14
15 namespace devtools_bridge {
16
17 /**
18 * Abstraction layer over WebRTC API used in DevTools Bridge.
19 * It helps to isolate ref counting and threading logic needed.
20 */
21 class SessionDependencyFactory {
22 public:
23 SessionDependencyFactory() {}
24 virtual ~SessionDependencyFactory() {}
25
26 static bool InitializeSSL();
27 static bool CleanupSSL();
28
29 static scoped_ptr<SessionDependencyFactory> CreateInstance(
30 base::Closure const& cleanup_on_signaling_thread);
31
32 virtual scoped_ptr<AbstractPeerConnection> CreatePeerConnection(
33 scoped_ptr<RTCConfiguration> config,
34 scoped_ptr<AbstractPeerConnection::Delegate> delegate) = 0;
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(SessionDependencyFactory);
38 };
39
40 } // namespace devtools_bridge
41
42 #endif // COMPONENTS_DEVTOOLS_BRIDGE_SESSION_DEPENDENCY_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698