Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1073)

Side by Side Diff: content/public/browser/render_frame_host.h

Issue 2059533002: Change WebContentsDelegate::RunFileChooser to be frame based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes based on reviews. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_BROWSER_RENDER_FRAME_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/common/console_message_level.h" 13 #include "content/public/common/console_message_level.h"
14 #include "content/public/common/file_chooser_params.h"
14 #include "ipc/ipc_listener.h" 15 #include "ipc/ipc_listener.h"
15 #include "ipc/ipc_sender.h" 16 #include "ipc/ipc_sender.h"
16 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 17 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
17 #include "ui/gfx/geometry/rect.h" 18 #include "ui/gfx/geometry/rect.h"
18 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
19 #include "url/gurl.h" 20 #include "url/gurl.h"
20 #include "url/origin.h" 21 #include "url/origin.h"
21 22
22 namespace base { 23 namespace base {
23 class Value; 24 class Value;
24 } 25 }
25 26
26 namespace content { 27 namespace content {
27 class RenderProcessHost; 28 class RenderProcessHost;
28 class RenderViewHost; 29 class RenderViewHost;
29 class RenderWidgetHostView; 30 class RenderWidgetHostView;
30 class ServiceRegistry; 31 class ServiceRegistry;
31 class SiteInstance; 32 class SiteInstance;
33 struct FileChooserFileInfo;
32 34
33 // The interface provides a communication conduit with a frame in the renderer. 35 // The interface provides a communication conduit with a frame in the renderer.
34 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, 36 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
35 public IPC::Sender { 37 public IPC::Sender {
36 public: 38 public:
37 // Returns the RenderFrameHost given its ID and the ID of its render process. 39 // Returns the RenderFrameHost given its ID and the ID of its render process.
38 // Returns nullptr if the IDs do not correspond to a live RenderFrameHost. 40 // Returns nullptr if the IDs do not correspond to a live RenderFrameHost.
39 static RenderFrameHost* FromID(int render_process_id, int render_frame_id); 41 static RenderFrameHost* FromID(int render_process_id, int render_frame_id);
40 42
41 #if defined(OS_ANDROID) 43 #if defined(OS_ANDROID)
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; 176 virtual blink::WebPageVisibilityState GetVisibilityState() = 0;
175 177
176 // Returns whether the RenderFrame in the renderer process has been created 178 // Returns whether the RenderFrame in the renderer process has been created
177 // and still has a connection. This is valid for all frames. 179 // and still has a connection. This is valid for all frames.
178 virtual bool IsRenderFrameLive() = 0; 180 virtual bool IsRenderFrameLive() = 0;
179 181
180 // Get the number of proxies to this frame, in all processes. Exposed for 182 // Get the number of proxies to this frame, in all processes. Exposed for
181 // use by resource metrics. 183 // use by resource metrics.
182 virtual int GetProxyCount() = 0; 184 virtual int GetProxyCount() = 0;
183 185
186 // Notifies the Listener that one or more files have been chosen by the user
187 // from a file chooser dialog for the form. |permissions| is the file
188 // selection mode in which the chooser dialog was created.
189 virtual void FilesSelectedInChooser(
190 const std::vector<content::FileChooserFileInfo>& files,
191 FileChooserParams::Mode permissions) = 0;
192
184 private: 193 private:
185 // This interface should only be implemented inside content. 194 // This interface should only be implemented inside content.
186 friend class RenderFrameHostImpl; 195 friend class RenderFrameHostImpl;
187 RenderFrameHost() {} 196 RenderFrameHost() {}
188 }; 197 };
189 198
190 } // namespace content 199 } // namespace content
191 200
192 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 201 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698