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" |
11 #include "webkit/glue/console_message_level.h" | 11 #include "webkit/glue/console_message_level.h" |
| 12 #include "webkit/glue/feed.h" |
12 #include "webkit/glue/find_in_page_request.h" | 13 #include "webkit/glue/find_in_page_request.h" |
13 | 14 |
14 class GURL; | 15 class GURL; |
15 class PlatformContextSkia; | 16 class PlatformContextSkia; |
16 class WebDataSource; | 17 class WebDataSource; |
17 class WebError; | 18 class WebError; |
18 class WebRequest; | 19 class WebRequest; |
19 class WebView; | 20 class WebView; |
20 class WebTextInput; | 21 class WebTextInput; |
21 struct NPObject; | 22 struct NPObject; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 123 |
123 // Returns the URL to the favorite icon for the frame. An empty GURL is | 124 // Returns the URL to the favorite icon for the frame. An empty GURL is |
124 // returned if the frame has not finished loading, or the frame's URL | 125 // returned if the frame has not finished loading, or the frame's URL |
125 // protocol is not http or https. | 126 // protocol is not http or https. |
126 virtual GURL GetFavIconURL() const = 0; | 127 virtual GURL GetFavIconURL() const = 0; |
127 | 128 |
128 // Returns the URL to the OpenSearch description document for the frame. If | 129 // Returns the URL to the OpenSearch description document for the frame. If |
129 // the page does not have a valid document, an empty GURL is returned. | 130 // the page does not have a valid document, an empty GURL is returned. |
130 virtual GURL GetOSDDURL() const = 0; | 131 virtual GURL GetOSDDURL() const = 0; |
131 | 132 |
| 133 // Return the list of feeds specified in the document for the frame. If |
| 134 // the page does not have a valid document, an empty list is returned. |
| 135 virtual scoped_refptr<class FeedList> GetFeedList() const = 0; |
| 136 |
132 // Returns the committed data source, which is the last data source that has | 137 // Returns the committed data source, which is the last data source that has |
133 // successfully started loading. Will return NULL if no provisional data | 138 // successfully started loading. Will return NULL if no provisional data |
134 // has been committed. | 139 // has been committed. |
135 virtual WebDataSource* GetDataSource() const = 0; | 140 virtual WebDataSource* GetDataSource() const = 0; |
136 | 141 |
137 // Returns the provisional data source, which is a data source where a | 142 // Returns the provisional data source, which is a data source where a |
138 // request has been made, but we are not sure if we will use data from it | 143 // request has been made, but we are not sure if we will use data from it |
139 // (for example, it may be an invalid URL). When the provisional load is | 144 // (for example, it may be an invalid URL). When the provisional load is |
140 // "committed," it will become the "real" data source (see GetDataSource | 145 // "committed," it will become the "real" data source (see GetDataSource |
141 // above) and the provisional data source will be NULL. | 146 // above) and the provisional data source will be NULL. |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 virtual int PendingFrameUnloadEventCount() const = 0; | 371 virtual int PendingFrameUnloadEventCount() const = 0; |
367 | 372 |
368 protected: | 373 protected: |
369 virtual ~WebFrame() {} | 374 virtual ~WebFrame() {} |
370 | 375 |
371 private: | 376 private: |
372 DISALLOW_COPY_AND_ASSIGN(WebFrame); | 377 DISALLOW_COPY_AND_ASSIGN(WebFrame); |
373 }; | 378 }; |
374 | 379 |
375 #endif // WEBKIT_GLUE_WEBFRAME_H_ | 380 #endif // WEBKIT_GLUE_WEBFRAME_H_ |
OLD | NEW |