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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 1306053008: Avoid creating a RenderWidgetHostView for proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 class TimeoutMonitor; 73 class TimeoutMonitor;
74 struct ContextMenuParams; 74 struct ContextMenuParams;
75 struct GlobalRequestID; 75 struct GlobalRequestID;
76 struct Referrer; 76 struct Referrer;
77 struct ResourceResponse; 77 struct ResourceResponse;
78 78
79 // Flag arguments for RenderFrameHost creation. 79 // Flag arguments for RenderFrameHost creation.
80 enum CreateRenderFrameFlags { 80 enum CreateRenderFrameFlags {
81 // The RFH will be initially placed on the swapped out hosts list. 81 // The RFH will be initially placed on the swapped out hosts list.
82 CREATE_RF_SWAPPED_OUT = 1 << 0, 82 CREATE_RF_SWAPPED_OUT = 1 << 0,
83 // The new RenderFrame is being created for a navigation of the
84 // top-level frame.
85 CREATE_RF_FOR_MAIN_FRAME_NAVIGATION = 1 << 1,
86 // The RenderFrame is initially hidden. 83 // The RenderFrame is initially hidden.
87 CREATE_RF_HIDDEN = 1 << 2, 84 CREATE_RF_HIDDEN = 1 << 1,
88 // The RenderFrameHost will have a new RenderWidgetHost created and 85 // The RenderFrameHost will have a new RenderWidgetHost created and
89 // attached to it. This is used when the RenderFrameHost is in a different 86 // attached to it. This is used when the RenderFrameHost is in a different
90 // process from its parent frame. 87 // process from its parent frame.
91 CREATE_RF_NEEDS_RENDER_WIDGET_HOST = 1 << 3 88 CREATE_RF_NEEDS_RENDER_WIDGET_HOST = 1 << 2
92 }; 89 };
93 90
94 class CONTENT_EXPORT RenderFrameHostImpl 91 class CONTENT_EXPORT RenderFrameHostImpl
95 : public RenderFrameHost, 92 : public RenderFrameHost,
96 public BrowserAccessibilityDelegate { 93 public BrowserAccessibilityDelegate {
97 public: 94 public:
98 using AXTreeSnapshotCallback = 95 using AXTreeSnapshotCallback =
99 base::Callback<void(const ui::AXTreeUpdate<ui::AXNodeData>&)>; 96 base::Callback<void(const ui::AXTreeUpdate<ui::AXNodeData>&)>;
100 97
101 // Keeps track of the state of the RenderFrameHostImpl, particularly with 98 // Keeps track of the state of the RenderFrameHostImpl, particularly with
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 777
781 // NOTE: This must be the last member. 778 // NOTE: This must be the last member.
782 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 779 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
783 780
784 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 781 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
785 }; 782 };
786 783
787 } // namespace content 784 } // namespace content
788 785
789 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 786 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698