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

Side by Side Diff: chrome/browser/media/webrtc_browsertest_base.h

Issue 1909923002: Making RTCCertificate cloneable (WIP). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Derp! Created 4 years, 7 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 2013 The Chromium Authors. All rights reserved. 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 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_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_
6 #define CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 // Methods to check what devices we have on the system. 146 // Methods to check what devices we have on the system.
147 bool HasWebcamAvailableOnSystem(content::WebContents* tab_contents) const; 147 bool HasWebcamAvailableOnSystem(content::WebContents* tab_contents) const;
148 148
149 // Returns true if we're on WinXP, that lovely operating system of bliss. 149 // Returns true if we're on WinXP, that lovely operating system of bliss.
150 bool OnWinXp() const; 150 bool OnWinXp() const;
151 151
152 // Returns true if we're on win 8. 152 // Returns true if we're on win 8.
153 bool OnWin8() const; 153 bool OnWin8() const;
154 154
155 void OpenDatabase(content::WebContents* tab) const;
156 void CloseDatabase(content::WebContents* tab) const;
157 void DeleteDatabase(content::WebContents* tab) const;
158
159 void GenerateAndCloneCertificate(content::WebContents* tab,
160 const std::string& keygen_algorithm) const;
161
155 private: 162 private:
156 void CloseInfoBarInTab(content::WebContents* tab_contents, 163 void CloseInfoBarInTab(content::WebContents* tab_contents,
157 infobars::InfoBar* infobar) const; 164 infobars::InfoBar* infobar) const;
158 165
159 std::string CreateLocalOffer( 166 std::string CreateLocalOffer(
160 content::WebContents* from_tab, 167 content::WebContents* from_tab,
161 std::string default_video_codec = kUseDefaultVideoCodec) const; 168 std::string default_video_codec = kUseDefaultVideoCodec) const;
162 std::string CreateAnswer( 169 std::string CreateAnswer(
163 std::string local_offer, 170 std::string local_offer,
164 content::WebContents* to_tab, 171 content::WebContents* to_tab,
165 std::string default_video_codec = kUseDefaultVideoCodec) const; 172 std::string default_video_codec = kUseDefaultVideoCodec) const;
166 void ReceiveAnswer(const std::string& answer, 173 void ReceiveAnswer(const std::string& answer,
167 content::WebContents* from_tab) const; 174 content::WebContents* from_tab) const;
168 void GatherAndSendIceCandidates(content::WebContents* from_tab, 175 void GatherAndSendIceCandidates(content::WebContents* from_tab,
169 content::WebContents* to_tab) const; 176 content::WebContents* to_tab) const;
170 177
171 infobars::InfoBar* GetUserMediaAndWaitForInfoBar( 178 infobars::InfoBar* GetUserMediaAndWaitForInfoBar(
172 content::WebContents* tab_contents, 179 content::WebContents* tab_contents,
173 const std::string& constraints) const; 180 const std::string& constraints) const;
174 181
175 bool detect_errors_in_javascript_; 182 bool detect_errors_in_javascript_;
176 183
177 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase); 184 DISALLOW_COPY_AND_ASSIGN(WebRtcTestBase);
178 }; 185 };
179 186
180 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_ 187 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc_browsertest.cc ('k') | chrome/browser/media/webrtc_browsertest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698