OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "skia/ext/bitmap_platform_device.h" | 9 #include "skia/ext/bitmap_platform_device.h" |
10 #include "skia/ext/platform_canvas.h" | 10 #include "skia/ext/platform_canvas.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // | 107 // |
108 // Returns false if there is no valid state to return (for example, there is | 108 // Returns false if there is no valid state to return (for example, there is |
109 // no previous item). Returns true if the current item's state was retrieved, | 109 // no previous item). Returns true if the current item's state was retrieved, |
110 // even if that state may be empty. | 110 // even if that state may be empty. |
111 virtual bool GetCurrentHistoryState(std::string* history_state) const = 0; | 111 virtual bool GetCurrentHistoryState(std::string* history_state) const = 0; |
112 | 112 |
113 // Returns true if there is a current history item. A newly created WebFrame | 113 // Returns true if there is a current history item. A newly created WebFrame |
114 // lacks a history item. Otherwise, this will always be true. | 114 // lacks a history item. Otherwise, this will always be true. |
115 virtual bool HasCurrentHistoryState() const = 0; | 115 virtual bool HasCurrentHistoryState() const = 0; |
116 | 116 |
117 // Returns the current URL of the frame, or the empty string if there is no | 117 // Returns the current URL of the frame, or an empty GURL if there is no |
118 // URL to retrieve (for example, the frame may never have had any content). | 118 // URL to retrieve (for example, the frame may never have had any content). |
119 virtual GURL GetURL() const = 0; | 119 virtual GURL GetURL() const = 0; |
120 | 120 |
121 // Returns the URL to the favorite icon for the frame. An empty string is | 121 // Returns the URL to the favorite icon for the frame. An empty GURL is |
122 // returned if the frame has not finished loading, or the frame's URL | 122 // returned if the frame has not finished loading, or the frame's URL |
123 // protocol is not http or https. | 123 // protocol is not http or https. |
124 virtual GURL GetFavIconURL() const = 0; | 124 virtual GURL GetFavIconURL() const = 0; |
125 | 125 |
126 // Returns the URL to the OpenSearch description document for the frame. If | 126 // Returns the URL to the OpenSearch description document for the frame. If |
127 // the page does not have a valid document, an empty GURL is returned. | 127 // the page does not have a valid document, an empty GURL is returned. |
128 virtual GURL GetOSDDURL() const = 0; | 128 virtual GURL GetOSDDURL() const = 0; |
129 | 129 |
130 // Returns the committed data source, which is the last data source that has | 130 // Returns the committed data source, which is the last data source that has |
131 // successfully started loading. Will return NULL if no provisional data | 131 // successfully started loading. Will return NULL if no provisional data |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 virtual int PendingFrameUnloadEventCount() const = 0; | 364 virtual int PendingFrameUnloadEventCount() const = 0; |
365 | 365 |
366 protected: | 366 protected: |
367 virtual ~WebFrame() {} | 367 virtual ~WebFrame() {} |
368 | 368 |
369 private: | 369 private: |
370 DISALLOW_COPY_AND_ASSIGN(WebFrame); | 370 DISALLOW_COPY_AND_ASSIGN(WebFrame); |
371 }; | 371 }; |
372 | 372 |
373 #endif // WEBKIT_GLUE_WEBFRAME_H_ | 373 #endif // WEBKIT_GLUE_WEBFRAME_H_ |
OLD | NEW |