Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 struct WebContextMenuData; | 26 struct WebContextMenuData; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace gfx { | 29 namespace gfx { |
| 30 class Point; | 30 class Point; |
| 31 class Size; | 31 class Size; |
| 32 } | 32 } |
| 33 | 33 |
| 34 namespace content { | 34 namespace content { |
| 35 | 35 |
| 36 class CompositorDependencies; | |
| 36 class RenderFrame; | 37 class RenderFrame; |
| 37 class RenderViewVisitor; | 38 class RenderViewVisitor; |
| 38 struct SSLStatus; | 39 struct SSLStatus; |
| 39 struct WebPreferences; | 40 struct WebPreferences; |
| 40 | 41 |
| 41 // DEPRECATED: RenderView is being removed as part of the SiteIsolation project. | 42 // DEPRECATED: RenderView is being removed as part of the SiteIsolation project. |
| 42 // New code should be added to RenderFrame instead. | 43 // New code should be added to RenderFrame instead. |
| 43 // | 44 // |
| 44 // For context, please see https://crbug.com/467770 and | 45 // For context, please see https://crbug.com/467770 and |
| 45 // http://www.chromium.org/developers/design-documents/site-isolation. | 46 // http://www.chromium.org/developers/design-documents/site-isolation. |
| 46 class CONTENT_EXPORT RenderView : public IPC::Sender { | 47 class CONTENT_EXPORT RenderView : public IPC::Sender { |
| 47 public: | 48 public: |
| 48 // Returns the RenderView containing the given WebView. | 49 // Returns the RenderView containing the given WebView. |
| 49 static RenderView* FromWebView(blink::WebView* webview); | 50 static RenderView* FromWebView(blink::WebView* webview); |
| 50 | 51 |
| 51 // Returns the RenderView for the given routing ID. | 52 // Returns the RenderView for the given routing ID. |
| 52 static RenderView* FromRoutingID(int routing_id); | 53 static RenderView* FromRoutingID(int routing_id); |
| 53 | 54 |
| 54 // Returns the number of live RenderView instances in this process. | 55 // Returns the number of live RenderView instances in this process. |
| 55 static size_t GetRenderViewCount(); | 56 static size_t GetRenderViewCount(); |
| 56 | 57 |
| 57 // Visit all RenderViews with a live WebView (i.e., RenderViews that have | 58 // Visit all RenderViews with a live WebView (i.e., RenderViews that have |
| 58 // been closed but not yet destroyed are excluded). | 59 // been closed but not yet destroyed are excluded). |
| 59 static void ForEach(RenderViewVisitor* visitor); | 60 static void ForEach(RenderViewVisitor* visitor); |
| 60 | 61 |
| 61 // Applies WebKit related preferences to this view. | 62 // Applies WebKit related preferences to this view. |
| 62 static void ApplyWebPreferences(const WebPreferences& preferences, | 63 static void ApplyWebPreferencesInternal( |
| 63 blink::WebView* web_view); | 64 const WebPreferences& preferences, |
| 65 blink::WebView* web_view, | |
| 66 CompositorDependencies* compositor_deps); | |
|
piman
2015/07/01 16:08:05
What I had in mind was to have ApplyWebPreferences
MuVen
2015/07/01 17:01:39
Done.
| |
| 64 | 67 |
| 65 // Returns the main RenderFrame. | 68 // Returns the main RenderFrame. |
| 66 virtual RenderFrame* GetMainRenderFrame() = 0; | 69 virtual RenderFrame* GetMainRenderFrame() = 0; |
| 67 | 70 |
| 68 // Get the routing ID of the view. | 71 // Get the routing ID of the view. |
| 69 virtual int GetRoutingID() const = 0; | 72 virtual int GetRoutingID() const = 0; |
| 70 | 73 |
| 71 // Returns the size of the view. | 74 // Returns the size of the view. |
| 72 virtual gfx::Size GetSize() const = 0; | 75 virtual gfx::Size GetSize() const = 0; |
| 73 | 76 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 132 | 135 |
| 133 private: | 136 private: |
| 134 // This interface should only be implemented inside content. | 137 // This interface should only be implemented inside content. |
| 135 friend class RenderViewImpl; | 138 friend class RenderViewImpl; |
| 136 RenderView() {} | 139 RenderView() {} |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 } // namespace content | 142 } // namespace content |
| 140 | 143 |
| 141 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 144 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |