| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ |
| 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ | 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ |
| 7 | 7 |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "third_party/WebKit/WebKit/chromium/public/WebGraphicsContext3D.h" | 9 #include "third_party/WebKit/WebKit/chromium/public/WebGraphicsContext3D.h" |
| 10 #include "third_party/WebKit/WebKit/chromium/public/WebIDBFactory.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebIDBFactory.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 } | 97 } |
| 98 | 98 |
| 99 virtual WebKit::WebMessagePortChannel* createMessagePortChannel() { | 99 virtual WebKit::WebMessagePortChannel* createMessagePortChannel() { |
| 100 return NULL; | 100 return NULL; |
| 101 } | 101 } |
| 102 | 102 |
| 103 virtual void prefetchHostName(const WebKit::WebString&) { | 103 virtual void prefetchHostName(const WebKit::WebString&) { |
| 104 } | 104 } |
| 105 | 105 |
| 106 virtual WebKit::WebData loadResource(const char* name); | 106 virtual WebKit::WebData loadResource(const char* name); |
| 107 virtual WebKit::WebString queryLocalizedString( |
| 108 WebKit::WebLocalizedString::Name name); |
| 109 virtual WebKit::WebString queryLocalizedString( |
| 110 WebKit::WebLocalizedString::Name name, const WebKit::WebString& value); |
| 111 virtual WebKit::WebString queryLocalizedString( |
| 112 WebKit::WebLocalizedString::Name name, |
| 113 const WebKit::WebString& value1, const WebKit::WebString& value2); |
| 107 | 114 |
| 108 virtual WebKit::WebString defaultLocale() { | 115 virtual WebKit::WebString defaultLocale() { |
| 109 return ASCIIToUTF16("en-US"); | 116 return ASCIIToUTF16("en-US"); |
| 110 } | 117 } |
| 111 | 118 |
| 112 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( | 119 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( |
| 113 const WebKit::WebString& path, unsigned quota) { | 120 const WebKit::WebString& path, unsigned quota) { |
| 114 // Enforce quota here, ignoring the value from the renderer as in Chrome. | 121 // Enforce quota here, ignoring the value from the renderer as in Chrome. |
| 115 return WebKit::WebStorageNamespace::createLocalStorageNamespace(path, | 122 return WebKit::WebStorageNamespace::createLocalStorageNamespace(path, |
| 116 WebKit::WebStorageNamespace::m_localStorageQuota); | 123 WebKit::WebStorageNamespace::m_localStorageQuota); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 SimpleWebCookieJarImpl cookie_jar_; | 175 SimpleWebCookieJarImpl cookie_jar_; |
| 169 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; | 176 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; |
| 170 SimpleFileSystem file_system_; | 177 SimpleFileSystem file_system_; |
| 171 | 178 |
| 172 #if defined(OS_WIN) | 179 #if defined(OS_WIN) |
| 173 WebKit::WebThemeEngine* active_theme_engine_; | 180 WebKit::WebThemeEngine* active_theme_engine_; |
| 174 #endif | 181 #endif |
| 175 }; | 182 }; |
| 176 | 183 |
| 177 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ | 184 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_WEBKIT_INIT_H_ |
| OLD | NEW |