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 "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
10 #include "skia/ext/bitmap_platform_device.h" | 10 #include "skia/ext/bitmap_platform_device.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // This grants the currently loaded Document access to all security origins | 69 // This grants the currently loaded Document access to all security origins |
70 // (including file URLs). Use with care. The access is revoked when a new | 70 // (including file URLs). Use with care. The access is revoked when a new |
71 // document is loaded into this frame. | 71 // document is loaded into this frame. |
72 virtual void GrantUniversalAccess() = 0; | 72 virtual void GrantUniversalAccess() = 0; |
73 | 73 |
74 virtual NPObject* GetWindowNPObject() = 0; | 74 virtual NPObject* GetWindowNPObject() = 0; |
75 | 75 |
76 // Loads the given WebRequest. | 76 // Loads the given WebRequest. |
77 virtual void LoadRequest(WebRequest* request) = 0; | 77 virtual void LoadRequest(WebRequest* request) = 0; |
78 | 78 |
| 79 // Loads the given history state. This corresponds to a back/forward |
| 80 // navigation. |
| 81 virtual void LoadHistoryState(const std::string& history_state) = 0; |
| 82 |
79 // This method is short-hand for calling LoadAlternateHTMLString with a dummy | 83 // This method is short-hand for calling LoadAlternateHTMLString with a dummy |
80 // request for the given base_url. | 84 // request for the given base_url. |
81 virtual void LoadHTMLString(const std::string& html_text, | 85 virtual void LoadHTMLString(const std::string& html_text, |
82 const GURL& base_url) = 0; | 86 const GURL& base_url) = 0; |
83 | 87 |
84 // Loads alternative HTML text in place of a particular URL. This method is | 88 // Loads alternative HTML text in place of a particular URL. This method is |
85 // designed with error pages in mind, in which case it would typically be | 89 // designed with error pages in mind, in which case it would typically be |
86 // called in response to WebViewDelegate's didFailProvisionalLoadWithError | 90 // called in response to WebViewDelegate's didFailProvisionalLoadWithError |
87 // method. | 91 // method. |
88 // | 92 // |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 virtual int PendingFrameUnloadEventCount() const = 0; | 418 virtual int PendingFrameUnloadEventCount() const = 0; |
415 | 419 |
416 protected: | 420 protected: |
417 virtual ~WebFrame() {} | 421 virtual ~WebFrame() {} |
418 | 422 |
419 private: | 423 private: |
420 DISALLOW_COPY_AND_ASSIGN(WebFrame); | 424 DISALLOW_COPY_AND_ASSIGN(WebFrame); |
421 }; | 425 }; |
422 | 426 |
423 #endif // WEBKIT_GLUE_WEBFRAME_H_ | 427 #endif // WEBKIT_GLUE_WEBFRAME_H_ |
OLD | NEW |