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

Unified Diff: webkit/tools/test_shell/test_shell_webkit_init.h

Issue 27222: Chrome side to implement WebMimeRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: webkit/tools/test_shell/test_shell_webkit_init.h
===================================================================
--- webkit/tools/test_shell/test_shell_webkit_init.h (revision 0)
+++ webkit/tools/test_shell/test_shell_webkit_init.h (revision 0)
@@ -0,0 +1,35 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
+// source code is governed by a BSD-style license that can be found in the
+// LICENSE file.
+
+#ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
+#define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
+
+#include "webkit/glue/simple_webmimeregistry_impl.h"
+#include "webkit/glue/webkit_glue.h"
+#include "webkit/glue/webkitclient_impl.h"
+
+#include "WebKit.h"
+
+class TestShellWebKitInit : public webkit_glue::WebKitClientImpl {
+ public:
+ TestShellWebKitInit(bool layout_test_mode) {
+ WebKit::initialize(this);
+
+ // TODO(darin): This should eventually be a property of WebKitClientImpl.
+ webkit_glue::SetLayoutTestMode(layout_test_mode);
+ }
+
+ ~TestShellWebKitInit() {
+ WebKit::shutdown();
+ }
+
+ virtual WebKit::WebMimeRegistry* mimeRegistry() {
+ return &mime_registry_;
+ }
+
+ private:
+ webkit_glue::SimpleWebMimeRegistryImpl mime_registry_;
+};
+
+#endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
Property changes on: webkit\tools\test_shell\test_shell_webkit_init.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « webkit/tools/test_shell/test_shell_main.cc ('k') | webkit/webkit.gyp » ('j') | webkit/webkit.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698