OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 namespace base { | 92 namespace base { |
93 class WaitableEvent; | 93 class WaitableEvent; |
94 } | 94 } |
95 | 95 |
96 namespace webkit_glue { | 96 namespace webkit_glue { |
97 struct FileUploadData; | 97 struct FileUploadData; |
98 } | 98 } |
99 | 99 |
100 namespace WebKit { | 100 namespace WebKit { |
101 class WebAccessibilityCache; | 101 class WebAccessibilityCache; |
102 class WebApplicationCacheHost; | |
103 class WebApplicationCacheHostClient; | |
102 class WebDataSource; | 104 class WebDataSource; |
103 class WebDragData; | 105 class WebDragData; |
104 class WebGeolocationServiceInterface; | 106 class WebGeolocationServiceInterface; |
105 class WebImage; | 107 class WebImage; |
106 class WebMediaPlayer; | 108 class WebMediaPlayer; |
107 class WebMediaPlayerClient; | 109 class WebMediaPlayerClient; |
108 class WebStorageNamespace; | 110 class WebStorageNamespace; |
109 class WebURLRequest; | 111 class WebURLRequest; |
110 struct WebFileChooserParams; | 112 struct WebFileChooserParams; |
111 struct WebFindOptions; | 113 struct WebFindOptions; |
(...skipping 13 matching lines...) Expand all Loading... | |
125 // This is a RefCounted holder of an int because I can't say | 127 // This is a RefCounted holder of an int because I can't say |
126 // scoped_refptr<int>. | 128 // scoped_refptr<int>. |
127 typedef base::RefCountedData<int> SharedRenderViewCounter; | 129 typedef base::RefCountedData<int> SharedRenderViewCounter; |
128 | 130 |
129 // | 131 // |
130 // RenderView is an object that manages a WebView object, and provides a | 132 // RenderView is an object that manages a WebView object, and provides a |
131 // communication interface with an embedding application process | 133 // communication interface with an embedding application process |
132 // | 134 // |
133 class RenderView : public RenderWidget, | 135 class RenderView : public RenderWidget, |
134 public WebKit::WebViewClient, | 136 public WebKit::WebViewClient, |
135 public WebKit::WebFrameClient, | 137 public WebKit::WebFrameClient, |
michaeln
2010/04/06 18:52:15
You'll also want to add the new factory method for
| |
136 public WebKit::WebPageSerializerClient, | 138 public WebKit::WebPageSerializerClient, |
137 public webkit_glue::WebPluginPageDelegate, | 139 public webkit_glue::WebPluginPageDelegate, |
138 public base::SupportsWeakPtr<RenderView>, | 140 public base::SupportsWeakPtr<RenderView>, |
139 public PageTranslator::PageTranslatorDelegate { | 141 public PageTranslator::PageTranslatorDelegate { |
140 public: | 142 public: |
141 // Visit all RenderViews with a live WebView (i.e., RenderViews that have | 143 // Visit all RenderViews with a live WebView (i.e., RenderViews that have |
142 // been closed but not yet destroyed are excluded). | 144 // been closed but not yet destroyed are excluded). |
143 static void ForEach(RenderViewVisitor* visitor); | 145 static void ForEach(RenderViewVisitor* visitor); |
144 | 146 |
145 // Returns the RenderView containing the given WebView. | 147 // Returns the RenderView containing the given WebView. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
296 // WebKit::WebFrameClient | 298 // WebKit::WebFrameClient |
297 virtual WebKit::WebPlugin* createPlugin( | 299 virtual WebKit::WebPlugin* createPlugin( |
298 WebKit::WebFrame* frame, const WebKit::WebPluginParams& params); | 300 WebKit::WebFrame* frame, const WebKit::WebPluginParams& params); |
299 virtual WebKit::WebWorker* createWorker( | 301 virtual WebKit::WebWorker* createWorker( |
300 WebKit::WebFrame* frame, WebKit::WebWorkerClient* client); | 302 WebKit::WebFrame* frame, WebKit::WebWorkerClient* client); |
301 virtual WebKit::WebSharedWorker* createSharedWorker( | 303 virtual WebKit::WebSharedWorker* createSharedWorker( |
302 WebKit::WebFrame* frame, const WebKit::WebURL& url, | 304 WebKit::WebFrame* frame, const WebKit::WebURL& url, |
303 const WebKit::WebString& name, unsigned long long documentId); | 305 const WebKit::WebString& name, unsigned long long documentId); |
304 virtual WebKit::WebMediaPlayer* createMediaPlayer( | 306 virtual WebKit::WebMediaPlayer* createMediaPlayer( |
305 WebKit::WebFrame* frame, WebKit::WebMediaPlayerClient* client); | 307 WebKit::WebFrame* frame, WebKit::WebMediaPlayerClient* client); |
308 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( | |
309 WebKit::WebFrame* frame, WebKit::WebApplicationCacheHostClient* client); | |
306 virtual WebKit::WebCookieJar* cookieJar(); | 310 virtual WebKit::WebCookieJar* cookieJar(); |
307 virtual void willClose(WebKit::WebFrame* frame); | 311 virtual void willClose(WebKit::WebFrame* frame); |
308 virtual bool allowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings); | 312 virtual bool allowPlugins(WebKit::WebFrame* frame, bool enabled_per_settings); |
309 virtual bool allowImages(WebKit::WebFrame* frame, bool enabled_per_settings); | 313 virtual bool allowImages(WebKit::WebFrame* frame, bool enabled_per_settings); |
310 virtual void loadURLExternally( | 314 virtual void loadURLExternally( |
311 WebKit::WebFrame* frame, const WebKit::WebURLRequest& request, | 315 WebKit::WebFrame* frame, const WebKit::WebURLRequest& request, |
312 WebKit::WebNavigationPolicy policy); | 316 WebKit::WebNavigationPolicy policy); |
313 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( | 317 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( |
314 WebKit::WebFrame* frame, const WebKit::WebURLRequest& request, | 318 WebKit::WebFrame* frame, const WebKit::WebURLRequest& request, |
315 WebKit::WebNavigationType type, const WebKit::WebNode&, | 319 WebKit::WebNavigationType type, const WebKit::WebNode&, |
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1208 | 1212 |
1209 // Site isolation metrics flags. These are per-page-load counts, reset to 0 | 1213 // Site isolation metrics flags. These are per-page-load counts, reset to 0 |
1210 // in OnClosePage. | 1214 // in OnClosePage. |
1211 int cross_origin_access_count_; | 1215 int cross_origin_access_count_; |
1212 int same_origin_access_count_; | 1216 int same_origin_access_count_; |
1213 | 1217 |
1214 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1218 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1215 }; | 1219 }; |
1216 | 1220 |
1217 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1221 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |