OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 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 | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #ifndef CHROME_RENDERER_RENDERER_WEBKIT_CLIENT_IMPL_H_ | 5 #ifndef CHROME_RENDERER_RENDERER_WEBKIT_CLIENT_IMPL_H_ |
6 #define CHROME_RENDERER_RENDERER_WEBKIT_CLIENT_IMPL_H_ | 6 #define CHROME_RENDERER_RENDERER_WEBKIT_CLIENT_IMPL_H_ |
7 | 7 |
8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
9 #include "webkit/glue/simple_webmimeregistry_impl.h" | 9 #include "webkit/glue/simple_webmimeregistry_impl.h" |
10 #include "webkit/glue/webclipboard_impl.h" | 10 #include "webkit/glue/webclipboard_impl.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 const WebKit::WebString& path, unsigned quota); | 45 const WebKit::WebString& path, unsigned quota); |
46 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace(); | 46 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace(); |
47 | 47 |
48 virtual WebKit::WebKitClient::FileHandle databaseOpenFile( | 48 virtual WebKit::WebKitClient::FileHandle databaseOpenFile( |
49 const WebKit::WebString& file_name, int desired_flags, | 49 const WebKit::WebString& file_name, int desired_flags, |
50 WebKit::WebKitClient::FileHandle* dir_handle); | 50 WebKit::WebKitClient::FileHandle* dir_handle); |
51 virtual int databaseDeleteFile(const WebKit::WebString& file_name, | 51 virtual int databaseDeleteFile(const WebKit::WebString& file_name, |
52 bool sync_dir); | 52 bool sync_dir); |
53 virtual long databaseGetFileAttributes(const WebKit::WebString& file_name); | 53 virtual long databaseGetFileAttributes(const WebKit::WebString& file_name); |
54 virtual long long databaseGetFileSize(const WebKit::WebString& file_name); | 54 virtual long long databaseGetFileSize(const WebKit::WebString& file_name); |
| 55 virtual WebKit::WebString signedPublicKeyAndChallengeString( |
| 56 unsigned key_size_index, |
| 57 const WebKit::WebString& challenge, |
| 58 const WebKit::WebURL& url); |
55 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( | 59 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( |
56 WebKit::WebApplicationCacheHostClient*); | 60 WebKit::WebApplicationCacheHostClient*); |
57 | 61 |
58 private: | 62 private: |
59 class MimeRegistry : public webkit_glue::SimpleWebMimeRegistryImpl { | 63 class MimeRegistry : public webkit_glue::SimpleWebMimeRegistryImpl { |
60 public: | 64 public: |
61 virtual WebKit::WebString mimeTypeForExtension(const WebKit::WebString&); | 65 virtual WebKit::WebString mimeTypeForExtension(const WebKit::WebString&); |
62 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); | 66 virtual WebKit::WebString mimeTypeFromFile(const WebKit::WebString&); |
63 virtual WebKit::WebString preferredExtensionForMIMEType( | 67 virtual WebKit::WebString preferredExtensionForMIMEType( |
64 const WebKit::WebString&); | 68 const WebKit::WebString&); |
(...skipping 28 matching lines...) Expand all Loading... |
93 #endif | 97 #endif |
94 | 98 |
95 // This counter keeps track of the number of times sudden termination is | 99 // This counter keeps track of the number of times sudden termination is |
96 // enabled or disabled. It starts at 0 (enabled) and for every disable | 100 // enabled or disabled. It starts at 0 (enabled) and for every disable |
97 // increments by 1, for every enable decrements by 1. When it reaches 0, | 101 // increments by 1, for every enable decrements by 1. When it reaches 0, |
98 // we tell the browser to enable fast termination. | 102 // we tell the browser to enable fast termination. |
99 int sudden_termination_disables_; | 103 int sudden_termination_disables_; |
100 }; | 104 }; |
101 | 105 |
102 #endif // CHROME_RENDERER_WEBKIT_CLIENT_IMPL_H_ | 106 #endif // CHROME_RENDERER_WEBKIT_CLIENT_IMPL_H_ |
OLD | NEW |