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

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

Issue 1341563002: Plugin Power Saver: Improve origin handling esp. with OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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_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 13 matching lines...) Expand all
24 class WebPlugin; 24 class WebPlugin;
25 class WebURLRequest; 25 class WebURLRequest;
26 class WebURLResponse; 26 class WebURLResponse;
27 struct WebPluginParams; 27 struct WebPluginParams;
28 } 28 }
29 29
30 namespace gfx { 30 namespace gfx {
31 class Range; 31 class Range;
32 } 32 }
33 33
34 namespace url {
35 class Origin;
36 }
37
34 namespace v8 { 38 namespace v8 {
35 template <typename T> class Local; 39 template <typename T> class Local;
36 class Context; 40 class Context;
37 class Isolate; 41 class Isolate;
38 } 42 }
39 43
40 namespace content { 44 namespace content {
41 class ContextMenuClient; 45 class ContextMenuClient;
42 class PluginInstanceThrottler; 46 class PluginInstanceThrottler;
43 class RenderView; 47 class RenderView;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 virtual bool IsHidden() = 0; 119 virtual bool IsHidden() = 0;
116 120
117 // Returns the ServiceRegistry for this frame. 121 // Returns the ServiceRegistry for this frame.
118 virtual ServiceRegistry* GetServiceRegistry() = 0; 122 virtual ServiceRegistry* GetServiceRegistry() = 0;
119 123
120 #if defined(ENABLE_PLUGINS) 124 #if defined(ENABLE_PLUGINS)
121 // Registers a plugin that has been marked peripheral. If the origin 125 // Registers a plugin that has been marked peripheral. If the origin
122 // whitelist is later updated and includes |content_origin|, then 126 // whitelist is later updated and includes |content_origin|, then
123 // |unthrottle_callback| will be called. 127 // |unthrottle_callback| will be called.
124 virtual void RegisterPeripheralPlugin( 128 virtual void RegisterPeripheralPlugin(
125 const GURL& content_origin, 129 const url::Origin& content_origin,
126 const base::Closure& unthrottle_callback) = 0; 130 const base::Closure& unthrottle_callback) = 0;
127 #endif 131 #endif
128 132
129 // Returns true if this frame is a FTP directory listing. 133 // Returns true if this frame is a FTP directory listing.
130 virtual bool IsFTPDirectoryListing() = 0; 134 virtual bool IsFTPDirectoryListing() = 0;
131 135
132 // Attaches the browser plugin identified by |element_instance_id| to guest 136 // Attaches the browser plugin identified by |element_instance_id| to guest
133 // content created by the embedder. 137 // content created by the embedder.
134 virtual void AttachGuest(int element_instance_id) = 0; 138 virtual void AttachGuest(int element_instance_id) = 0;
135 139
(...skipping 20 matching lines...) Expand all
156 160
157 private: 161 private:
158 // This interface should only be implemented inside content. 162 // This interface should only be implemented inside content.
159 friend class RenderFrameImpl; 163 friend class RenderFrameImpl;
160 RenderFrame() {} 164 RenderFrame() {}
161 }; 165 };
162 166
163 } // namespace content 167 } // namespace content
164 168
165 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ 169 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_
OLDNEW
« no previous file with comments | « content/public/renderer/plugin_instance_throttler.h ('k') | content/renderer/pepper/pepper_plugin_instance_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698