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

Side by Side Diff: content/public/renderer/render_frame.h

Issue 1360123006: Introduce RenderFrame::IsMainFrame and clean up a few things. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed use-after-free. Created 5 years, 2 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
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 scoped_ptr<PluginInstanceThrottler> throttler) = 0; 108 scoped_ptr<PluginInstanceThrottler> throttler) = 0;
109 109
110 // The client should handle the navigation externally. 110 // The client should handle the navigation externally.
111 virtual void LoadURLExternally(blink::WebLocalFrame* frame, 111 virtual void LoadURLExternally(blink::WebLocalFrame* frame,
112 const blink::WebURLRequest& request, 112 const blink::WebURLRequest& request,
113 blink::WebNavigationPolicy policy) = 0; 113 blink::WebNavigationPolicy policy) = 0;
114 114
115 // Execute a string of JavaScript in this frame's context. 115 // Execute a string of JavaScript in this frame's context.
116 virtual void ExecuteJavaScript(const base::string16& javascript) = 0; 116 virtual void ExecuteJavaScript(const base::string16& javascript) = 0;
117 117
118 // Returns true if this is the main (top-level) frame.
119 virtual bool IsMainFrame() = 0;
120
118 // Return true if this frame is hidden. 121 // Return true if this frame is hidden.
119 virtual bool IsHidden() = 0; 122 virtual bool IsHidden() = 0;
120 123
121 // Returns the ServiceRegistry for this frame. 124 // Returns the ServiceRegistry for this frame.
122 virtual ServiceRegistry* GetServiceRegistry() = 0; 125 virtual ServiceRegistry* GetServiceRegistry() = 0;
123 126
124 #if defined(ENABLE_PLUGINS) 127 #if defined(ENABLE_PLUGINS)
125 // Registers a plugin that has been marked peripheral. If the origin 128 // Registers a plugin that has been marked peripheral. If the origin
126 // whitelist is later updated and includes |content_origin|, then 129 // whitelist is later updated and includes |content_origin|, then
127 // |unthrottle_callback| will be called. 130 // |unthrottle_callback| will be called.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 163
161 private: 164 private:
162 // This interface should only be implemented inside content. 165 // This interface should only be implemented inside content.
163 friend class RenderFrameImpl; 166 friend class RenderFrameImpl;
164 RenderFrame() {} 167 RenderFrame() {}
165 }; 168 };
166 169
167 } // namespace content 170 } // namespace content
168 171
169 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 172 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698