OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
11 * documentation and/or other materials provided with the distribution. | 11 * documentation and/or other materials provided with the distribution. |
12 * | 12 * |
13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY | 13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY |
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR | 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR |
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WEBKIT_GLUE_WEBFRAME_IMPL_H_ | 26 #ifndef WEBKIT_GLUE_WEBFRAME_IMPL_H_ |
27 #define WEBKIT_GLUE_WEBFRAME_IMPL_H_ | 27 #define WEBKIT_GLUE_WEBFRAME_IMPL_H_ |
28 | 28 |
29 #include <string> | |
30 | |
31 #include "base/basictypes.h" | |
32 #include "base/compiler_specific.h" | |
33 #include "base/scoped_ptr.h" | 29 #include "base/scoped_ptr.h" |
34 #include "base/task.h" | 30 #include "base/task.h" |
35 #include "skia/ext/platform_canvas.h" | 31 #include "skia/ext/platform_canvas.h" |
36 #include "webkit/glue/password_autocomplete_listener.h" | 32 #include "webkit/glue/password_autocomplete_listener.h" |
37 #include "webkit/glue/webdatasource_impl.h" | |
38 #include "webkit/glue/webframe.h" | 33 #include "webkit/glue/webframe.h" |
39 #include "webkit/glue/webframeloaderclient_impl.h" | 34 #include "webkit/glue/webframeloaderclient_impl.h" |
40 #include "webkit/glue/webhistoryitem_impl.h" | |
41 #include "webkit/glue/webplugin_delegate.h" | |
42 #include "webkit/glue/webview_delegate.h" | |
43 | 35 |
44 MSVC_PUSH_WARNING_LEVEL(0); | 36 MSVC_PUSH_WARNING_LEVEL(0); |
45 #include "ResourceHandleClient.h" | 37 #include "ResourceHandleClient.h" |
46 #include "Frame.h" | 38 #include "Frame.h" |
47 #include "PlatformString.h" | 39 #include "PlatformString.h" |
48 MSVC_POP_WARNING(); | 40 MSVC_POP_WARNING(); |
49 | 41 |
50 class AltErrorPageResourceFetcher; | 42 class AltErrorPageResourceFetcher; |
| 43 class WebDataSourceImpl; |
51 class WebErrorImpl; | 44 class WebErrorImpl; |
| 45 class WebHistoryItemImpl; |
| 46 class WebPluginDelegate; |
52 class WebRequest; | 47 class WebRequest; |
53 class WebView; | 48 class WebView; |
54 class WebViewImpl; | 49 class WebViewImpl; |
55 class WebTextInput; | 50 class WebTextInput; |
56 class WebTextInputImpl; | 51 class WebTextInputImpl; |
57 | 52 |
58 namespace WebCore { | 53 namespace WebCore { |
59 class Frame; | 54 class Frame; |
60 class FrameView; | 55 class FrameView; |
61 class HistoryItem; | 56 class HistoryItem; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 } | 208 } |
214 | 209 |
215 WebCore::FrameView* frameview() const { | 210 WebCore::FrameView* frameview() const { |
216 return frame_ ? frame_->view() : NULL; | 211 return frame_ ? frame_->view() : NULL; |
217 } | 212 } |
218 | 213 |
219 // Update the given datasource with currently_loading_request's info. | 214 // Update the given datasource with currently_loading_request's info. |
220 // If currently_loading_request is NULL, does nothing. | 215 // If currently_loading_request is NULL, does nothing. |
221 void CacheCurrentRequestInfo(WebDataSourceImpl* datasource); | 216 void CacheCurrentRequestInfo(WebDataSourceImpl* datasource); |
222 | 217 |
223 void set_currently_loading_history_item(WebHistoryItemImpl* item) { | 218 void set_currently_loading_history_item(WebHistoryItemImpl* item); |
224 currently_loading_history_item_ = item; | |
225 } | |
226 | 219 |
227 // Getters for the impls corresponding to Get(Provisional)DataSource. They | 220 // Getters for the impls corresponding to Get(Provisional)DataSource. They |
228 // may return NULL if there is no corresponding data source. | 221 // may return NULL if there is no corresponding data source. |
229 WebDataSourceImpl* GetDataSourceImpl() const; | 222 WebDataSourceImpl* GetDataSourceImpl() const; |
230 WebDataSourceImpl* GetProvisionalDataSourceImpl() const; | 223 WebDataSourceImpl* GetProvisionalDataSourceImpl() const; |
231 | 224 |
232 const WebCore::Node* inspected_node() const { | 225 const WebCore::Node* inspected_node() const { |
233 return inspected_node_; | 226 return inspected_node_; |
234 } | 227 } |
235 | 228 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 // The input fields that are interested in edit events and their associated | 423 // The input fields that are interested in edit events and their associated |
431 // listeners. | 424 // listeners. |
432 typedef HashMap<RefPtr<WebCore::HTMLInputElement>, | 425 typedef HashMap<RefPtr<WebCore::HTMLInputElement>, |
433 webkit_glue::PasswordAutocompleteListener*> PasswordListenerMap; | 426 webkit_glue::PasswordAutocompleteListener*> PasswordListenerMap; |
434 PasswordListenerMap password_listeners_; | 427 PasswordListenerMap password_listeners_; |
435 | 428 |
436 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl); | 429 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl); |
437 }; | 430 }; |
438 | 431 |
439 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_ | 432 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_ |
OLD | NEW |