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

Side by Side Diff: webkit/support/webkit_support.h

Issue 8887004: add components for integration test which will detect breakage of media pipeline with video captu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: corresponding change with webkit patch Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ 5 #ifndef WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_
6 #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ 6 #define WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 21 matching lines...) Expand all
32 struct WebURLError; 32 struct WebURLError;
33 } 33 }
34 34
35 // This package provides functions used by DumpRenderTree/chromium. 35 // This package provides functions used by DumpRenderTree/chromium.
36 // DumpRenderTree/chromium uses some code in webkit/ of Chromium. In 36 // DumpRenderTree/chromium uses some code in webkit/ of Chromium. In
37 // order to minimize the dependency from WebKit to Chromium, the 37 // order to minimize the dependency from WebKit to Chromium, the
38 // following functions uses WebKit API classes as possible and hide 38 // following functions uses WebKit API classes as possible and hide
39 // implementation classes. 39 // implementation classes.
40 namespace webkit_support { 40 namespace webkit_support {
41 41
42 class TestMediaStreamClient;
43
42 // Initializes or terminates a test environment. 44 // Initializes or terminates a test environment.
43 // |unit_test_mode| should be set to true when running in a TestSuite, in which 45 // |unit_test_mode| should be set to true when running in a TestSuite, in which
44 // case no AtExitManager is created and ICU is not initialized (as it is already 46 // case no AtExitManager is created and ICU is not initialized (as it is already
45 // done by the TestSuite). 47 // done by the TestSuite).
46 // SetUpTestEnvironment() and SetUpTestEnvironmentForUnitTests() calls 48 // SetUpTestEnvironment() and SetUpTestEnvironmentForUnitTests() calls
47 // WebKit::initialize(). 49 // WebKit::initialize().
48 // TearDownTestEnvironment() calls WebKit::shutdown(). 50 // TearDownTestEnvironment() calls WebKit::shutdown().
49 // SetUpTestEnvironmentForUnitTests() should be used when running in a 51 // SetUpTestEnvironmentForUnitTests() should be used when running in a
50 // TestSuite, in which case no AtExitManager is created and ICU is not 52 // TestSuite, in which case no AtExitManager is created and ICU is not
51 // initialized (as it is already done by the TestSuite). 53 // initialized (as it is already done by the TestSuite).
52 void SetUpTestEnvironment(); 54 void SetUpTestEnvironment();
53 void SetUpTestEnvironmentForUnitTests(); 55 void SetUpTestEnvironmentForUnitTests();
54 void TearDownTestEnvironment(); 56 void TearDownTestEnvironment();
55 57
56 // Returns a pointer to a WebKitPlatformSupport implementation for 58 // Returns a pointer to a WebKitPlatformSupport implementation for
57 // DumpRenderTree. Needs to call SetUpTestEnvironment() before this. 59 // DumpRenderTree. Needs to call SetUpTestEnvironment() before this.
58 // This returns a pointer to a static instance. Don't delete it. 60 // This returns a pointer to a static instance. Don't delete it.
59 WebKit::WebKitPlatformSupport* GetWebKitPlatformSupport(); 61 WebKit::WebKitPlatformSupport* GetWebKitPlatformSupport();
60 62
61 // This is used by WebFrameClient::createPlugin(). 63 // This is used by WebFrameClient::createPlugin().
62 WebKit::WebPlugin* CreateWebPlugin(WebKit::WebFrame* frame, 64 WebKit::WebPlugin* CreateWebPlugin(WebKit::WebFrame* frame,
63 const WebKit::WebPluginParams& params); 65 const WebKit::WebPluginParams& params);
64 66
65 // This is used by WebFrameClient::createMediaPlayer(). 67 // This is used by WebFrameClient::createMediaPlayer().
66 WebKit::WebMediaPlayer* CreateMediaPlayer(WebKit::WebFrame* frame, 68 WebKit::WebMediaPlayer* CreateMediaPlayer(
scherkus (not reviewing) 2011/12/21 20:26:45 is there another part to this patch that calls thi
wjia(left Chromium) 2012/01/03 17:08:12 This method is called only from WebKit/Tools/DumpR
67 WebKit::WebMediaPlayerClient* client); 69 WebKit::WebFrame* frame,
70 WebKit::WebMediaPlayerClient* client,
71 webkit_support::TestMediaStreamClient* test_media_stream_client);
68 72
69 // This is used by WebFrameClient::createApplicationCacheHost(). 73 // This is used by WebFrameClient::createApplicationCacheHost().
70 WebKit::WebApplicationCacheHost* CreateApplicationCacheHost( 74 WebKit::WebApplicationCacheHost* CreateApplicationCacheHost(
71 WebKit::WebFrame* frame, WebKit::WebApplicationCacheHostClient* client); 75 WebKit::WebFrame* frame, WebKit::WebApplicationCacheHostClient* client);
72 76
73 // Returns the root directory of the WebKit code. 77 // Returns the root directory of the WebKit code.
74 WebKit::WebString GetWebKitRootDir(); 78 WebKit::WebString GetWebKitRootDir();
75 79
76 enum GLBindingPreferences { 80 enum GLBindingPreferences {
77 GL_BINDING_DEFAULT, 81 GL_BINDING_DEFAULT,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 226
223 void EnableWebCoreLogChannels(const std::string& channels); 227 void EnableWebCoreLogChannels(const std::string& channels);
224 228
225 // - Gamepad 229 // - Gamepad
226 230
227 void SetGamepadData(const WebKit::WebGamepads& pads); 231 void SetGamepadData(const WebKit::WebGamepads& pads);
228 232
229 } // namespace webkit_support 233 } // namespace webkit_support
230 234
231 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_ 235 #endif // WEBKIT_SUPPORT_WEBKIT_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698