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

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

Issue 1833243002: Remove CreateRenderFrameFlags enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 class RenderWidgetHostView; 81 class RenderWidgetHostView;
82 class RenderWidgetHostViewBase; 82 class RenderWidgetHostViewBase;
83 class ResourceRequestBody; 83 class ResourceRequestBody;
84 class StreamHandle; 84 class StreamHandle;
85 class TimeoutMonitor; 85 class TimeoutMonitor;
86 struct ContextMenuParams; 86 struct ContextMenuParams;
87 struct GlobalRequestID; 87 struct GlobalRequestID;
88 struct Referrer; 88 struct Referrer;
89 struct ResourceResponse; 89 struct ResourceResponse;
90 90
91 // Flag arguments for RenderFrameHost creation.
92 enum CreateRenderFrameFlags {
93 // The RenderFrame is initially hidden.
94 CREATE_RF_HIDDEN = 1 << 0,
95 };
96
97 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost, 91 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
98 public BrowserAccessibilityDelegate, 92 public BrowserAccessibilityDelegate,
99 public SiteInstanceImpl::Observer { 93 public SiteInstanceImpl::Observer {
100 public: 94 public:
101 using AXTreeSnapshotCallback = 95 using AXTreeSnapshotCallback =
102 base::Callback<void( 96 base::Callback<void(
103 const ui::AXTreeUpdate&)>; 97 const ui::AXTreeUpdate&)>;
104 98
105 // Keeps track of the state of the RenderFrameHostImpl, particularly with 99 // Keeps track of the state of the RenderFrameHostImpl, particularly with
106 // respect to swap out. 100 // respect to swap out.
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 // should be the abstraction needed here, but we need RenderViewHost to pass 556 // should be the abstraction needed here, but we need RenderViewHost to pass
563 // into WebContentsObserver::FrameDetached for now. 557 // into WebContentsObserver::FrameDetached for now.
564 RenderFrameHostImpl(SiteInstance* site_instance, 558 RenderFrameHostImpl(SiteInstance* site_instance,
565 RenderViewHostImpl* render_view_host, 559 RenderViewHostImpl* render_view_host,
566 RenderFrameHostDelegate* delegate, 560 RenderFrameHostDelegate* delegate,
567 RenderWidgetHostDelegate* rwh_delegate, 561 RenderWidgetHostDelegate* rwh_delegate,
568 FrameTree* frame_tree, 562 FrameTree* frame_tree,
569 FrameTreeNode* frame_tree_node, 563 FrameTreeNode* frame_tree_node,
570 int32_t routing_id, 564 int32_t routing_id,
571 int32_t widget_routing_id, 565 int32_t widget_routing_id,
572 int flags); 566 bool hidden);
573 567
574 private: 568 private:
575 friend class TestRenderFrameHost; 569 friend class TestRenderFrameHost;
576 friend class TestRenderViewHost; 570 friend class TestRenderViewHost;
577 571
578 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, CrashSubframe); 572 FRIEND_TEST_ALL_PREFIXES(SitePerProcessBrowserTest, CrashSubframe);
579 573
580 // IPC Message handlers. 574 // IPC Message handlers.
581 void OnAddMessageToConsole(int32_t level, 575 void OnAddMessageToConsole(int32_t level,
582 const base::string16& message, 576 const base::string16& message,
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 941
948 // NOTE: This must be the last member. 942 // NOTE: This must be the last member.
949 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 943 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
950 944
951 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 945 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
952 }; 946 };
953 947
954 } // namespace content 948 } // namespace content
955 949
956 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 950 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_factory.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698