| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 const WebKit::WebData& html, | 116 const WebKit::WebData& html, |
| 117 const WebKit::WebURL& base_url, | 117 const WebKit::WebURL& base_url, |
| 118 const WebKit::WebURL& unreachable_url = WebKit::WebURL(), | 118 const WebKit::WebURL& unreachable_url = WebKit::WebURL(), |
| 119 bool replace = false) = 0; | 119 bool replace = false) = 0; |
| 120 | 120 |
| 121 // Called to associate the WebURLRequest with this frame. The request will | 121 // Called to associate the WebURLRequest with this frame. The request will |
| 122 // be modified to inherit parameters that allow it to be loaded. This method | 122 // be modified to inherit parameters that allow it to be loaded. This method |
| 123 // ends up triggering WebViewDelegate::WillSendRequest. | 123 // ends up triggering WebViewDelegate::WillSendRequest. |
| 124 virtual void DispatchWillSendRequest(WebKit::WebURLRequest* request) = 0; | 124 virtual void DispatchWillSendRequest(WebKit::WebURLRequest* request) = 0; |
| 125 | 125 |
| 126 // Called from within WebViewDelegate::DidReceiveDocumentData to commit data |
| 127 // for the frame that will be used to construct the frame's document. |
| 128 virtual void CommitDocumentData(const char* data, size_t data_len) = 0; |
| 129 |
| 126 // Executes JavaScript in the web frame. | 130 // Executes JavaScript in the web frame. |
| 127 virtual void ExecuteScript(const WebKit::WebScriptSource& source) = 0; | 131 virtual void ExecuteScript(const WebKit::WebScriptSource& source) = 0; |
| 128 | 132 |
| 129 // Executes JavaScript in a new context associated with the web frame. The | 133 // Executes JavaScript in a new context associated with the web frame. The |
| 130 // script gets its own global scope and its own prototypes for intrinsic | 134 // script gets its own global scope and its own prototypes for intrinsic |
| 131 // JavaScript objects (String, Array, and so-on). It shares the wrappers for | 135 // JavaScript objects (String, Array, and so-on). It shares the wrappers for |
| 132 // all DOM nodes and DOM constructors. extension_group is an | 136 // all DOM nodes and DOM constructors. extension_group is an |
| 133 // embedder-provided specifier that controls which v8 extensions are loaded | 137 // embedder-provided specifier that controls which v8 extensions are loaded |
| 134 // into the new context - see WebKit::registerExtension for the corresponding | 138 // into the new context - see WebKit::registerExtension for the corresponding |
| 135 // specifier. | 139 // specifier. |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 virtual int PendingFrameUnloadEventCount() const = 0; | 421 virtual int PendingFrameUnloadEventCount() const = 0; |
| 418 | 422 |
| 419 protected: | 423 protected: |
| 420 virtual ~WebFrame() {} | 424 virtual ~WebFrame() {} |
| 421 | 425 |
| 422 private: | 426 private: |
| 423 DISALLOW_COPY_AND_ASSIGN(WebFrame); | 427 DISALLOW_COPY_AND_ASSIGN(WebFrame); |
| 424 }; | 428 }; |
| 425 | 429 |
| 426 #endif // WEBKIT_GLUE_WEBFRAME_H_ | 430 #endif // WEBKIT_GLUE_WEBFRAME_H_ |
| OLD | NEW |