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

Side by Side 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, 9 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file.
4
5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
7
8 #include "webkit/glue/simple_webmimeregistry_impl.h"
9 #include "webkit/glue/webkit_glue.h"
10 #include "webkit/glue/webkitclient_impl.h"
11
12 #include "WebKit.h"
13
14 class TestShellWebKitInit : public webkit_glue::WebKitClientImpl {
15 public:
16 TestShellWebKitInit(bool layout_test_mode) {
17 WebKit::initialize(this);
18
19 // TODO(darin): This should eventually be a property of WebKitClientImpl.
20 webkit_glue::SetLayoutTestMode(layout_test_mode);
21 }
22
23 ~TestShellWebKitInit() {
24 WebKit::shutdown();
25 }
26
27 virtual WebKit::WebMimeRegistry* mimeRegistry() {
28 return &mime_registry_;
29 }
30
31 private:
32 webkit_glue::SimpleWebMimeRegistryImpl mime_registry_;
33 };
34
35 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_
OLDNEW
« 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