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 |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "webkit/glue/password_autocomplete_listener.h" | 32 #include "webkit/glue/password_autocomplete_listener.h" |
33 #include "webkit/glue/webframe.h" | 33 #include "webkit/glue/webframe.h" |
34 #include "webkit/glue/webframeloaderclient_impl.h" | 34 #include "webkit/glue/webframeloaderclient_impl.h" |
35 | 35 |
36 MSVC_PUSH_WARNING_LEVEL(0); | 36 MSVC_PUSH_WARNING_LEVEL(0); |
37 #include "ResourceHandleClient.h" | 37 #include "ResourceHandleClient.h" |
38 #include "Frame.h" | 38 #include "Frame.h" |
39 #include "PlatformString.h" | 39 #include "PlatformString.h" |
40 MSVC_POP_WARNING(); | 40 MSVC_POP_WARNING(); |
41 | 41 |
42 class AltErrorPageResourceFetcher; | |
43 class ChromePrintContext; | 42 class ChromePrintContext; |
44 class WebDataSourceImpl; | 43 class WebDataSourceImpl; |
45 class WebPluginDelegate; | 44 class WebPluginDelegate; |
46 class WebView; | 45 class WebView; |
47 class WebViewImpl; | 46 class WebViewImpl; |
48 class WebTextInput; | 47 class WebTextInput; |
49 class WebTextInputImpl; | 48 class WebTextInputImpl; |
50 | 49 |
| 50 namespace gfx { |
| 51 class BitmapPlatformDevice; |
| 52 } |
| 53 |
51 namespace WebCore { | 54 namespace WebCore { |
52 class Frame; | 55 class Frame; |
53 class FrameView; | 56 class FrameView; |
54 class HistoryItem; | 57 class HistoryItem; |
55 class KURL; | 58 class KURL; |
56 class Node; | 59 class Node; |
57 class Range; | 60 class Range; |
58 class SubstituteData; | 61 class SubstituteData; |
59 struct WindowFeatures; | 62 struct WindowFeatures; |
60 } | 63 } |
61 | 64 |
62 namespace gfx { | 65 namespace webkit_glue { |
63 class BitmapPlatformDevice; | 66 class AltErrorPageResourceFetcher; |
64 } | 67 } |
65 | 68 |
66 // Implementation of WebFrame, note that this is a reference counted object. | 69 // Implementation of WebFrame, note that this is a reference counted object. |
67 class WebFrameImpl : public WebFrame, public base::RefCounted<WebFrameImpl> { | 70 class WebFrameImpl : public WebFrame, public base::RefCounted<WebFrameImpl> { |
68 public: | 71 public: |
69 WebFrameImpl(); | 72 WebFrameImpl(); |
70 ~WebFrameImpl(); | 73 ~WebFrameImpl(); |
71 | 74 |
72 static int live_object_count() { | 75 static int live_object_count() { |
73 return live_object_count_; | 76 return live_object_count_; |
(...skipping 17 matching lines...) Expand all Loading... |
91 const WebKit::WebData& data, | 94 const WebKit::WebData& data, |
92 const WebKit::WebURL& base_url, | 95 const WebKit::WebURL& base_url, |
93 const WebKit::WebURL& unreachable_url = WebKit::WebURL(), | 96 const WebKit::WebURL& unreachable_url = WebKit::WebURL(), |
94 bool replace = false); | 97 bool replace = false); |
95 virtual void LoadAlternateHTMLErrorPage( | 98 virtual void LoadAlternateHTMLErrorPage( |
96 const WebKit::WebURLRequest& request, | 99 const WebKit::WebURLRequest& request, |
97 const WebKit::WebURLError& error, | 100 const WebKit::WebURLError& error, |
98 const GURL& error_page_url, | 101 const GURL& error_page_url, |
99 bool replace, | 102 bool replace, |
100 const GURL& fake_url); | 103 const GURL& fake_url); |
| 104 virtual void DispatchWillSendRequest(WebKit::WebURLRequest* request); |
101 virtual void ExecuteScript(const WebKit::WebScriptSource& source); | 105 virtual void ExecuteScript(const WebKit::WebScriptSource& source); |
102 virtual void ExecuteScriptInNewContext( | 106 virtual void ExecuteScriptInNewContext( |
103 const WebKit::WebScriptSource* sources, int num_sources); | 107 const WebKit::WebScriptSource* sources, int num_sources); |
104 virtual bool InsertCSSStyles(const std::string& css); | 108 virtual bool InsertCSSStyles(const std::string& css); |
105 virtual WebKit::WebHistoryItem GetPreviousHistoryItem() const; | 109 virtual WebKit::WebHistoryItem GetPreviousHistoryItem() const; |
106 virtual WebKit::WebHistoryItem GetCurrentHistoryItem() const; | 110 virtual WebKit::WebHistoryItem GetCurrentHistoryItem() const; |
107 virtual GURL GetURL() const; | 111 virtual GURL GetURL() const; |
108 virtual GURL GetFavIconURL() const; | 112 virtual GURL GetFavIconURL() const; |
109 virtual GURL GetOSDDURL() const; | 113 virtual GURL GetOSDDURL() const; |
110 virtual int GetContentsPreferredWidth() const; | 114 virtual int GetContentsPreferredWidth() const; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 // WebFrameLoaderClient | 277 // WebFrameLoaderClient |
274 void Closing(); | 278 void Closing(); |
275 | 279 |
276 // See WebFrame.h for details. | 280 // See WebFrame.h for details. |
277 virtual void IncreaseMatchCount(int count, int request_id); | 281 virtual void IncreaseMatchCount(int count, int request_id); |
278 virtual void ReportFindInPageSelection(const WebKit::WebRect& selection_rect, | 282 virtual void ReportFindInPageSelection(const WebKit::WebRect& selection_rect, |
279 int active_match_ordinal, | 283 int active_match_ordinal, |
280 int request_id); | 284 int request_id); |
281 | 285 |
282 // Resource fetcher for downloading an alternate DNS error page. | 286 // Resource fetcher for downloading an alternate DNS error page. |
283 scoped_ptr<AltErrorPageResourceFetcher> alt_error_page_fetcher_; | 287 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; |
284 | 288 |
285 // Used to check for leaks of this object. | 289 // Used to check for leaks of this object. |
286 static int live_object_count_; | 290 static int live_object_count_; |
287 | 291 |
288 WebFrameLoaderClient frame_loader_client_; | 292 WebFrameLoaderClient frame_loader_client_; |
289 | 293 |
290 // This is a factory for creating cancelable tasks for this frame that run | 294 // This is a factory for creating cancelable tasks for this frame that run |
291 // asynchronously in order to scope string matches during a find operation. | 295 // asynchronously in order to scope string matches during a find operation. |
292 ScopedRunnableMethodFactory<WebFrameImpl> scope_matches_factory_; | 296 ScopedRunnableMethodFactory<WebFrameImpl> scope_matches_factory_; |
293 | 297 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 // The input fields that are interested in edit events and their associated | 403 // The input fields that are interested in edit events and their associated |
400 // listeners. | 404 // listeners. |
401 typedef HashMap<RefPtr<WebCore::HTMLInputElement>, | 405 typedef HashMap<RefPtr<WebCore::HTMLInputElement>, |
402 webkit_glue::PasswordAutocompleteListener*> PasswordListenerMap; | 406 webkit_glue::PasswordAutocompleteListener*> PasswordListenerMap; |
403 PasswordListenerMap password_listeners_; | 407 PasswordListenerMap password_listeners_; |
404 | 408 |
405 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl); | 409 DISALLOW_COPY_AND_ASSIGN(WebFrameImpl); |
406 }; | 410 }; |
407 | 411 |
408 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_ | 412 #endif // WEBKIT_GLUE_WEBFRAME_IMPL_H_ |
OLD | NEW |