OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "ipc/ipc_listener.h" | 10 #include "ipc/ipc_listener.h" |
11 #include "ipc/ipc_sender.h" | 11 #include "ipc/ipc_sender.h" |
12 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" | 12 #include "third_party/WebKit/public/web/WebNavigationPolicy.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 class WebFrame; | 15 class WebFrame; |
16 class WebLocalFrame; | 16 class WebLocalFrame; |
17 class WebNode; | 17 class WebNode; |
18 class WebPlugin; | 18 class WebPlugin; |
19 class WebURLRequest; | 19 class WebURLRequest; |
| 20 class WebURLResponse; |
20 struct WebPluginParams; | 21 struct WebPluginParams; |
21 } | 22 } |
22 | 23 |
23 namespace content { | 24 namespace content { |
24 class ContextMenuClient; | 25 class ContextMenuClient; |
25 class RenderView; | 26 class RenderView; |
26 class ServiceRegistry; | 27 class ServiceRegistry; |
27 struct ContextMenuParams; | 28 struct ContextMenuParams; |
28 struct WebPluginInfo; | 29 struct WebPluginInfo; |
29 struct WebPreferences; | 30 struct WebPreferences; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 85 |
85 // Execute a string of JavaScript in this frame's context. | 86 // Execute a string of JavaScript in this frame's context. |
86 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; | 87 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; |
87 | 88 |
88 // Return true if this frame is hidden. | 89 // Return true if this frame is hidden. |
89 virtual bool IsHidden() = 0; | 90 virtual bool IsHidden() = 0; |
90 | 91 |
91 // Returns the ServiceRegistry for this frame. | 92 // Returns the ServiceRegistry for this frame. |
92 virtual ServiceRegistry* GetServiceRegistry() = 0; | 93 virtual ServiceRegistry* GetServiceRegistry() = 0; |
93 | 94 |
| 95 // Returns true if this frame is a FTP directory listing. |
| 96 virtual bool IsFTPDirectoryListing() = 0; |
| 97 |
94 protected: | 98 protected: |
95 virtual ~RenderFrame() {} | 99 virtual ~RenderFrame() {} |
96 | 100 |
97 private: | 101 private: |
98 // This interface should only be implemented inside content. | 102 // This interface should only be implemented inside content. |
99 friend class RenderFrameImpl; | 103 friend class RenderFrameImpl; |
100 RenderFrame() {} | 104 RenderFrame() {} |
101 }; | 105 }; |
102 | 106 |
103 } // namespace content | 107 } // namespace content |
104 | 108 |
105 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 109 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
OLD | NEW |