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

Side by Side Diff: components/test_runner/web_test_proxy.h

Issue 1416123005: Implement setSinkId() for media elements without src. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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
« no previous file with comments | « components/test_runner/web_frame_test_proxy.h ('k') | components/test_runner/web_test_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_
6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "components/test_runner/test_runner_export.h" 15 #include "components/test_runner/test_runner_export.h"
16 #include "components/test_runner/web_task.h" 16 #include "components/test_runner/web_task.h"
17 #include "third_party/WebKit/public/platform/WebImage.h" 17 #include "third_party/WebKit/public/platform/WebImage.h"
18 #include "third_party/WebKit/public/platform/WebRect.h" 18 #include "third_party/WebKit/public/platform/WebRect.h"
19 #include "third_party/WebKit/public/platform/WebScreenInfo.h" 19 #include "third_party/WebKit/public/platform/WebScreenInfo.h"
20 #include "third_party/WebKit/public/platform/WebSetSinkIdCallbacks.h"
20 #include "third_party/WebKit/public/platform/WebURLError.h" 21 #include "third_party/WebKit/public/platform/WebURLError.h"
21 #include "third_party/WebKit/public/platform/WebURLRequest.h" 22 #include "third_party/WebKit/public/platform/WebURLRequest.h"
22 #include "third_party/WebKit/public/web/WebAXEnums.h" 23 #include "third_party/WebKit/public/web/WebAXEnums.h"
23 #include "third_party/WebKit/public/web/WebDOMMessageEvent.h" 24 #include "third_party/WebKit/public/web/WebDOMMessageEvent.h"
24 #include "third_party/WebKit/public/web/WebDataSource.h" 25 #include "third_party/WebKit/public/web/WebDataSource.h"
25 #include "third_party/WebKit/public/web/WebDragOperation.h" 26 #include "third_party/WebKit/public/web/WebDragOperation.h"
26 #include "third_party/WebKit/public/web/WebFrame.h" 27 #include "third_party/WebKit/public/web/WebFrame.h"
27 #include "third_party/WebKit/public/web/WebFrameClient.h" 28 #include "third_party/WebKit/public/web/WebFrameClient.h"
28 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" 29 #include "third_party/WebKit/public/web/WebHistoryCommitType.h"
29 #include "third_party/WebKit/public/web/WebIconURL.h" 30 #include "third_party/WebKit/public/web/WebIconURL.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 const blink::WebURLRequest::Priority& priority, 219 const blink::WebURLRequest::Priority& priority,
219 int intra_priority_value); 220 int intra_priority_value);
220 void DidFinishResourceLoad(blink::WebLocalFrame* frame, unsigned identifier); 221 void DidFinishResourceLoad(blink::WebLocalFrame* frame, unsigned identifier);
221 blink::WebNavigationPolicy DecidePolicyForNavigation( 222 blink::WebNavigationPolicy DecidePolicyForNavigation(
222 const blink::WebFrameClient::NavigationPolicyInfo& info); 223 const blink::WebFrameClient::NavigationPolicyInfo& info);
223 bool WillCheckAndDispatchMessageEvent(blink::WebLocalFrame* source_frame, 224 bool WillCheckAndDispatchMessageEvent(blink::WebLocalFrame* source_frame,
224 blink::WebFrame* target_frame, 225 blink::WebFrame* target_frame,
225 blink::WebSecurityOrigin target, 226 blink::WebSecurityOrigin target,
226 blink::WebDOMMessageEvent event); 227 blink::WebDOMMessageEvent event);
227 void ResetInputMethod(); 228 void ResetInputMethod();
229 void CheckIfAudioSinkExistsAndIsAuthorized(
230 const blink::WebString& sink_id,
231 const blink::WebSecurityOrigin& security_origin,
232 blink::WebSetSinkIdCallbacks* web_callbacks);
228 233
229 blink::WebString acceptLanguages(); 234 blink::WebString acceptLanguages();
230 235
231 private: 236 private:
232 template <class, typename> 237 template <class, typename>
233 friend class WebFrameTestProxy; 238 friend class WebFrameTestProxy;
234 239
235 enum CheckDoneReason { 240 enum CheckDoneReason {
236 LoadFinished, 241 LoadFinished,
237 MainResourceLoadFailed, 242 MainResourceLoadFailed,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 388
384 private: 389 private:
385 virtual ~WebTestProxy() {} 390 virtual ~WebTestProxy() {}
386 391
387 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); 392 DISALLOW_COPY_AND_ASSIGN(WebTestProxy);
388 }; 393 };
389 394
390 } // namespace test_runner 395 } // namespace test_runner
391 396
392 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_ 397 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_PROXY_H_
OLDNEW
« no previous file with comments | « components/test_runner/web_frame_test_proxy.h ('k') | components/test_runner/web_test_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698