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

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

Issue 2496203003: Add printing tests to ensure window.print() works for subframes.
Patch Set: Created 4 years, 1 month 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 #include <vector>
9 10
10 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
11 #include "build/build_config.h" 12 #include "build/build_config.h"
12 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
13 #include "content/public/common/console_message_level.h" 14 #include "content/public/common/console_message_level.h"
14 #include "content/public/common/file_chooser_params.h" 15 #include "content/public/common/file_chooser_params.h"
15 #include "ipc/ipc_listener.h" 16 #include "ipc/ipc_listener.h"
16 #include "ipc/ipc_sender.h" 17 #include "ipc/ipc_sender.h"
17 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 18 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
18 #include "ui/gfx/geometry/rect.h" 19 #include "ui/gfx/geometry/rect.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Returns the assigned name of the frame, the name of the iframe tag 99 // Returns the assigned name of the frame, the name of the iframe tag
99 // declaring it. For example, <iframe name="framename">[...]</iframe>. It is 100 // declaring it. For example, <iframe name="framename">[...]</iframe>. It is
100 // quite possible for a frame to have no name, in which case GetFrameName will 101 // quite possible for a frame to have no name, in which case GetFrameName will
101 // return an empty string. 102 // return an empty string.
102 virtual const std::string& GetFrameName() = 0; 103 virtual const std::string& GetFrameName() = 0;
103 104
104 // Returns true if the frame is out of process. 105 // Returns true if the frame is out of process.
105 virtual bool IsCrossProcessSubframe() = 0; 106 virtual bool IsCrossProcessSubframe() = 0;
106 107
107 // Returns the last committed URL of the frame. 108 // Returns the last committed URL of the frame.
108 virtual const GURL& GetLastCommittedURL() = 0; 109 virtual const GURL& GetLastCommittedURL() const = 0;
109 110
110 // Returns the last committed origin of the frame. 111 // Returns the last committed origin of the frame.
111 // 112 //
112 // The origin is only available if this RenderFrameHost is current in the 113 // The origin is only available if this RenderFrameHost is current in the
113 // frame tree -- i.e., it would be visited by WebContents::ForEachFrame. In 114 // frame tree -- i.e., it would be visited by WebContents::ForEachFrame. In
114 // particular, this method may CHECK if called from 115 // particular, this method may CHECK if called from
115 // WebContentsObserver::RenderFrameCreated, since non-current frames can be 116 // WebContentsObserver::RenderFrameCreated, since non-current frames can be
116 // passed to that observer method. 117 // passed to that observer method.
117 virtual url::Origin GetLastCommittedOrigin() = 0; 118 virtual url::Origin GetLastCommittedOrigin() = 0;
118 119
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 225
225 private: 226 private:
226 // This interface should only be implemented inside content. 227 // This interface should only be implemented inside content.
227 friend class RenderFrameHostImpl; 228 friend class RenderFrameHostImpl;
228 RenderFrameHost() {} 229 RenderFrameHost() {}
229 }; 230 };
230 231
231 } // namespace content 232 } // namespace content
232 233
233 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 234 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698