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

Side by Side Diff: webkit/support/test_webkit_platform_support.cc

Issue 22723005: Remove gc extension from webkit/support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: put gc_extension in content/shell/renderer Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « webkit/support/gc_extension.cc ('k') | webkit/support/webkit_support.gypi » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "webkit/support/test_webkit_platform_support.h" 5 #include "webkit/support/test_webkit_platform_support.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/metrics/stats_counters.h" 10 #include "base/metrics/stats_counters.h"
(...skipping 18 matching lines...) Expand all
29 #include "v8/include/v8.h" 29 #include "v8/include/v8.h"
30 #include "webkit/browser/database/vfs_backend.h" 30 #include "webkit/browser/database/vfs_backend.h"
31 #include "webkit/child/webkitplatformsupport_impl.h" 31 #include "webkit/child/webkitplatformsupport_impl.h"
32 #include "webkit/common/gpu/test_context_provider_factory.h" 32 #include "webkit/common/gpu/test_context_provider_factory.h"
33 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h" 33 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h"
34 #include "webkit/common/gpu/webgraphicscontext3d_provider_impl.h" 34 #include "webkit/common/gpu/webgraphicscontext3d_provider_impl.h"
35 #include "webkit/glue/simple_webmimeregistry_impl.h" 35 #include "webkit/glue/simple_webmimeregistry_impl.h"
36 #include "webkit/glue/webkit_glue.h" 36 #include "webkit/glue/webkit_glue.h"
37 #include "webkit/renderer/appcache/web_application_cache_host_impl.h" 37 #include "webkit/renderer/appcache/web_application_cache_host_impl.h"
38 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" 38 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h"
39 #include "webkit/support/gc_extension.h"
40 #include "webkit/support/mock_webclipboard_impl.h" 39 #include "webkit/support/mock_webclipboard_impl.h"
41 #include "webkit/support/web_gesture_curve_mock.h" 40 #include "webkit/support/web_gesture_curve_mock.h"
42 #include "webkit/support/web_layer_tree_view_impl_for_testing.h" 41 #include "webkit/support/web_layer_tree_view_impl_for_testing.h"
43 #include "webkit/support/weburl_loader_mock_factory.h" 42 #include "webkit/support/weburl_loader_mock_factory.h"
44 43
45 #if defined(OS_WIN) 44 #if defined(OS_WIN)
46 #include "third_party/WebKit/public/platform/win/WebThemeEngine.h" 45 #include "third_party/WebKit/public/platform/win/WebThemeEngine.h"
47 #elif defined(OS_MACOSX) 46 #elif defined(OS_MACOSX)
48 #include "base/mac/mac_util.h" 47 #include "base/mac/mac_util.h"
49 #endif 48 #endif
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 97
99 #if defined(OS_WIN) 98 #if defined(OS_WIN)
100 // Ensure we pick up the default theme engine. 99 // Ensure we pick up the default theme engine.
101 SetThemeEngine(NULL); 100 SetThemeEngine(NULL);
102 #endif 101 #endif
103 102
104 net::CookieMonster::EnableFileScheme(); 103 net::CookieMonster::EnableFileScheme();
105 104
106 // Test shell always exposes the GC. 105 // Test shell always exposes the GC.
107 webkit_glue::SetJavaScriptFlags(" --expose-gc"); 106 webkit_glue::SetJavaScriptFlags(" --expose-gc");
108 // Expose GCController to JavaScript.
109 WebScriptController::registerExtension(extensions_v8::GCExtension::Get());
110 } 107 }
111 108
112 TestWebKitPlatformSupport::~TestWebKitPlatformSupport() { 109 TestWebKitPlatformSupport::~TestWebKitPlatformSupport() {
113 } 110 }
114 111
115 WebKit::WebMimeRegistry* TestWebKitPlatformSupport::mimeRegistry() { 112 WebKit::WebMimeRegistry* TestWebKitPlatformSupport::mimeRegistry() {
116 return &mime_registry_; 113 return &mime_registry_;
117 } 114 }
118 115
119 WebKit::WebClipboard* TestWebKitPlatformSupport::clipboard() { 116 WebKit::WebClipboard* TestWebKitPlatformSupport::clipboard() {
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 return view.release(); 335 return view.release();
339 } 336 }
340 337
341 WebKit::WebLayerTreeView* 338 WebKit::WebLayerTreeView*
342 TestWebKitPlatformSupport::createLayerTreeViewForTesting( 339 TestWebKitPlatformSupport::createLayerTreeViewForTesting(
343 TestViewType type) { 340 TestViewType type) {
344 DCHECK_EQ(TestViewTypeUnitTest, type); 341 DCHECK_EQ(TestViewTypeUnitTest, type);
345 return createLayerTreeViewForTesting(); 342 return createLayerTreeViewForTesting();
346 } 343 }
347 344
OLDNEW
« no previous file with comments | « webkit/support/gc_extension.cc ('k') | webkit/support/webkit_support.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698