OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_GLUE_WEBFRAME_H_ | 5 #ifndef WEBKIT_GLUE_WEBFRAME_H_ |
6 #define WEBKIT_GLUE_WEBFRAME_H_ | 6 #define WEBKIT_GLUE_WEBFRAME_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // Asks the WebFrame to try and download the alternate error page. We notify | 121 // Asks the WebFrame to try and download the alternate error page. We notify |
122 // the WebViewDelegate of the results so it can decide whether or not to show | 122 // the WebViewDelegate of the results so it can decide whether or not to show |
123 // something to the user (e.g., a local error page or the alternate error | 123 // something to the user (e.g., a local error page or the alternate error |
124 // page). | 124 // page). |
125 virtual void LoadAlternateHTMLErrorPage(const WebKit::WebURLRequest& request, | 125 virtual void LoadAlternateHTMLErrorPage(const WebKit::WebURLRequest& request, |
126 const WebKit::WebURLError& error, | 126 const WebKit::WebURLError& error, |
127 const GURL& error_page_url, | 127 const GURL& error_page_url, |
128 bool replace, | 128 bool replace, |
129 const GURL& fake_url) = 0; | 129 const GURL& fake_url) = 0; |
130 | 130 |
| 131 // Called to associate the WebURLRequest with this frame. The request will |
| 132 // be modified to inherit parameters that allow it to be loaded. This method |
| 133 // ends up triggering WebViewDelegate::WillSendRequest. |
| 134 virtual void DispatchWillSendRequest(WebKit::WebURLRequest* request) = 0; |
| 135 |
131 // Executes JavaScript in the web frame. | 136 // Executes JavaScript in the web frame. |
132 virtual void ExecuteScript(const WebKit::WebScriptSource& source) = 0; | 137 virtual void ExecuteScript(const WebKit::WebScriptSource& source) = 0; |
133 | 138 |
134 // Executes JavaScript in a new context associated with the web frame. The | 139 // Executes JavaScript in a new context associated with the web frame. The |
135 // script gets its own global scope and its own prototypes for intrinsic | 140 // script gets its own global scope and its own prototypes for intrinsic |
136 // JavaScript objects (String, Array, and so-on). It shares the wrappers for | 141 // JavaScript objects (String, Array, and so-on). It shares the wrappers for |
137 // all DOM nodes and DOM constructors. | 142 // all DOM nodes and DOM constructors. |
138 virtual void ExecuteScriptInNewContext( | 143 virtual void ExecuteScriptInNewContext( |
139 const WebKit::WebScriptSource* sources, int num_sources) = 0; | 144 const WebKit::WebScriptSource* sources, int num_sources) = 0; |
140 | 145 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 virtual int PendingFrameUnloadEventCount() const = 0; | 409 virtual int PendingFrameUnloadEventCount() const = 0; |
405 | 410 |
406 protected: | 411 protected: |
407 virtual ~WebFrame() {} | 412 virtual ~WebFrame() {} |
408 | 413 |
409 private: | 414 private: |
410 DISALLOW_COPY_AND_ASSIGN(WebFrame); | 415 DISALLOW_COPY_AND_ASSIGN(WebFrame); |
411 }; | 416 }; |
412 | 417 |
413 #endif // WEBKIT_GLUE_WEBFRAME_H_ | 418 #endif // WEBKIT_GLUE_WEBFRAME_H_ |
OLD | NEW |