| 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_SUPPORT_TEST_WEBKIT_CLIENT_H_ | 5 #ifndef WEBKIT_SUPPORT_TEST_WEBKIT_CLIENT_H_ |
| 6 #define WEBKIT_SUPPORT_TEST_WEBKIT_CLIENT_H_ | 6 #define WEBKIT_SUPPORT_TEST_WEBKIT_CLIENT_H_ |
| 7 | 7 |
| 8 #include "webkit/glue/webfileutilities_impl.h" | 8 #include "webkit/glue/webfileutilities_impl.h" |
| 9 #include "webkit/glue/webkitclient_impl.h" | 9 #include "webkit/glue/webkitclient_impl.h" |
| 10 #include "webkit/support/weburl_loader_mock_factory.h" | 10 #include "webkit/support/weburl_loader_mock_factory.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 const WebKit::WebString& vfs_file_name); | 40 const WebKit::WebString& vfs_file_name); |
| 41 virtual long long databaseGetFileSize( | 41 virtual long long databaseGetFileSize( |
| 42 const WebKit::WebString& vfs_file_name); | 42 const WebKit::WebString& vfs_file_name); |
| 43 virtual unsigned long long visitedLinkHash(const char* canonicalURL, | 43 virtual unsigned long long visitedLinkHash(const char* canonicalURL, |
| 44 size_t length); | 44 size_t length); |
| 45 virtual bool isLinkVisited(unsigned long long linkHash); | 45 virtual bool isLinkVisited(unsigned long long linkHash); |
| 46 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); | 46 virtual WebKit::WebMessagePortChannel* createMessagePortChannel(); |
| 47 virtual void prefetchHostName(const WebKit::WebString&); | 47 virtual void prefetchHostName(const WebKit::WebString&); |
| 48 virtual WebKit::WebURLLoader* createURLLoader(); | 48 virtual WebKit::WebURLLoader* createURLLoader(); |
| 49 virtual WebKit::WebData loadResource(const char* name); | 49 virtual WebKit::WebData loadResource(const char* name); |
| 50 virtual WebKit::WebString queryLocalizedString( |
| 51 WebKit::WebLocalizedString::Name name); |
| 52 virtual WebKit::WebString queryLocalizedString( |
| 53 WebKit::WebLocalizedString::Name name, int value1, int value2); |
| 54 virtual WebKit::WebString queryLocalizedString( |
| 55 WebKit::WebLocalizedString::Name name, const WebKit::WebString& value); |
| 56 virtual WebKit::WebString queryLocalizedString( |
| 57 WebKit::WebLocalizedString::Name name, |
| 58 const WebKit::WebString& value1, const WebKit::WebString& value2); |
| 50 virtual WebKit::WebString defaultLocale(); | 59 virtual WebKit::WebString defaultLocale(); |
| 51 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( | 60 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( |
| 52 const WebKit::WebString& path, unsigned quota); | 61 const WebKit::WebString& path, unsigned quota); |
| 53 | 62 |
| 54 void dispatchStorageEvent(const WebKit::WebString& key, | 63 void dispatchStorageEvent(const WebKit::WebString& key, |
| 55 const WebKit::WebString& old_value, const WebKit::WebString& new_value, | 64 const WebKit::WebString& old_value, const WebKit::WebString& new_value, |
| 56 const WebKit::WebString& origin, const WebKit::WebURL& url, | 65 const WebKit::WebString& origin, const WebKit::WebURL& url, |
| 57 bool is_local_storage); | 66 bool is_local_storage); |
| 58 virtual WebKit::WebIDBFactory* idbFactory(); | 67 virtual WebKit::WebIDBFactory* idbFactory(); |
| 59 virtual void createIDBKeysFromSerializedValuesAndKeyPath( | 68 virtual void createIDBKeysFromSerializedValuesAndKeyPath( |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 WebURLLoaderMockFactory url_loader_factory_; | 100 WebURLLoaderMockFactory url_loader_factory_; |
| 92 bool unit_test_mode_; | 101 bool unit_test_mode_; |
| 93 | 102 |
| 94 #if defined(OS_WIN) | 103 #if defined(OS_WIN) |
| 95 WebKit::WebThemeEngine* active_theme_engine_; | 104 WebKit::WebThemeEngine* active_theme_engine_; |
| 96 #endif | 105 #endif |
| 97 DISALLOW_COPY_AND_ASSIGN(TestWebKitClient); | 106 DISALLOW_COPY_AND_ASSIGN(TestWebKitClient); |
| 98 }; | 107 }; |
| 99 | 108 |
| 100 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_CLIENT_H_ | 109 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_CLIENT_H_ |
| OLD | NEW |