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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 329053004: Fix race in BrowserAccessibilityManagerWin creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 (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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE; 183 virtual RenderViewHost* GetRenderViewHost() const OVERRIDE;
184 virtual int GetRoutingID() const OVERRIDE; 184 virtual int GetRoutingID() const OVERRIDE;
185 virtual RenderWidgetHostView* GetRenderWidgetHostView() const OVERRIDE; 185 virtual RenderWidgetHostView* GetRenderWidgetHostView() const OVERRIDE;
186 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const 186 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const
187 OVERRIDE; 187 OVERRIDE;
188 virtual WebUI* CreateWebUI(const GURL& url) OVERRIDE; 188 virtual WebUI* CreateWebUI(const GURL& url) OVERRIDE;
189 virtual WebUI* GetWebUI() const OVERRIDE; 189 virtual WebUI* GetWebUI() const OVERRIDE;
190 virtual WebUI* GetCommittedWebUI() const OVERRIDE; 190 virtual WebUI* GetCommittedWebUI() const OVERRIDE;
191 virtual void SetUserAgentOverride(const std::string& override) OVERRIDE; 191 virtual void SetUserAgentOverride(const std::string& override) OVERRIDE;
192 virtual const std::string& GetUserAgentOverride() const OVERRIDE; 192 virtual const std::string& GetUserAgentOverride() const OVERRIDE;
193 #if defined(OS_WIN)
194 virtual void SetParentNativeViewAccessible(
195 gfx::NativeViewAccessible accessible_parent) OVERRIDE;
196 #endif
197 virtual const base::string16& GetTitle() const OVERRIDE; 193 virtual const base::string16& GetTitle() const OVERRIDE;
198 virtual int32 GetMaxPageID() OVERRIDE; 194 virtual int32 GetMaxPageID() OVERRIDE;
199 virtual int32 GetMaxPageIDForSiteInstance( 195 virtual int32 GetMaxPageIDForSiteInstance(
200 SiteInstance* site_instance) OVERRIDE; 196 SiteInstance* site_instance) OVERRIDE;
201 virtual SiteInstance* GetSiteInstance() const OVERRIDE; 197 virtual SiteInstance* GetSiteInstance() const OVERRIDE;
202 virtual SiteInstance* GetPendingSiteInstance() const OVERRIDE; 198 virtual SiteInstance* GetPendingSiteInstance() const OVERRIDE;
203 virtual bool IsLoading() const OVERRIDE; 199 virtual bool IsLoading() const OVERRIDE;
204 virtual bool IsLoadingToDifferentDocument() const OVERRIDE; 200 virtual bool IsLoadingToDifferentDocument() const OVERRIDE;
205 virtual bool IsWaitingForResponse() const OVERRIDE; 201 virtual bool IsWaitingForResponse() const OVERRIDE;
206 virtual const net::LoadStateWithParam& GetLoadState() const OVERRIDE; 202 virtual const net::LoadStateWithParam& GetLoadState() const OVERRIDE;
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 virtual void HandleKeyboardEvent( 496 virtual void HandleKeyboardEvent(
501 const NativeWebKeyboardEvent& event) OVERRIDE; 497 const NativeWebKeyboardEvent& event) OVERRIDE;
502 virtual bool HandleWheelEvent( 498 virtual bool HandleWheelEvent(
503 const blink::WebMouseWheelEvent& event) OVERRIDE; 499 const blink::WebMouseWheelEvent& event) OVERRIDE;
504 virtual bool PreHandleGestureEvent( 500 virtual bool PreHandleGestureEvent(
505 const blink::WebGestureEvent& event) OVERRIDE; 501 const blink::WebGestureEvent& event) OVERRIDE;
506 virtual bool HandleGestureEvent( 502 virtual bool HandleGestureEvent(
507 const blink::WebGestureEvent& event) OVERRIDE; 503 const blink::WebGestureEvent& event) OVERRIDE;
508 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) OVERRIDE; 504 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) OVERRIDE;
509 virtual void OnTouchEmulationEnabled(bool enabled) OVERRIDE; 505 virtual void OnTouchEmulationEnabled(bool enabled) OVERRIDE;
510 #if defined(OS_WIN)
511 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible() OVERRIDE;
512 #endif
513 506
514 // RenderFrameHostManager::Delegate ------------------------------------------ 507 // RenderFrameHostManager::Delegate ------------------------------------------
515 508
516 virtual bool CreateRenderViewForRenderManager( 509 virtual bool CreateRenderViewForRenderManager(
517 RenderViewHost* render_view_host, 510 RenderViewHost* render_view_host,
518 int opener_route_id, 511 int opener_route_id,
519 int proxy_routing_id, 512 int proxy_routing_id,
520 bool for_main_frame) OVERRIDE; 513 bool for_main_frame) OVERRIDE;
521 virtual void BeforeUnloadFiredFromRenderManager( 514 virtual void BeforeUnloadFiredFromRenderManager(
522 bool proceed, const base::TimeTicks& proceed_time, 515 bool proceed, const base::TimeTicks& proceed_time,
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 ObserverList<WebContentsObserver> observers_; 903 ObserverList<WebContentsObserver> observers_;
911 904
912 // The tab that opened this tab, if any. Will be set to null if the opener 905 // The tab that opened this tab, if any. Will be set to null if the opener
913 // is closed. 906 // is closed.
914 WebContentsImpl* opener_; 907 WebContentsImpl* opener_;
915 908
916 // True if this tab was opened by another tab. This is not unset if the opener 909 // True if this tab was opened by another tab. This is not unset if the opener
917 // is closed. 910 // is closed.
918 bool created_with_opener_; 911 bool created_with_opener_;
919 912
920 #if defined(OS_WIN)
921 gfx::NativeViewAccessible accessible_parent_;
922 #endif
923
924 // Helper classes ------------------------------------------------------------ 913 // Helper classes ------------------------------------------------------------
925 914
926 // Maps the RenderFrameHost to its media_player_cookie and PowerSaveBlocker 915 // Maps the RenderFrameHost to its media_player_cookie and PowerSaveBlocker
927 // pairs. Key is the RenderFrameHost, value is the map which maps 916 // pairs. Key is the RenderFrameHost, value is the map which maps
928 // player_cookie on to PowerSaveBlocker. 917 // player_cookie on to PowerSaveBlocker.
929 typedef std::map<RenderFrameHost*, std::map<int64, PowerSaveBlocker*> > 918 typedef std::map<RenderFrameHost*, std::map<int64, PowerSaveBlocker*> >
930 PowerSaveBlockerMap; 919 PowerSaveBlockerMap;
931 PowerSaveBlockerMap power_save_blockers_; 920 PowerSaveBlockerMap power_save_blockers_;
932 921
933 // Manages the frame tree of the page and process swaps in each node. 922 // Manages the frame tree of the page and process swaps in each node.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 bool last_dialog_suppressed_; 1119 bool last_dialog_suppressed_;
1131 1120
1132 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_; 1121 scoped_ptr<GeolocationDispatcherHost> geolocation_dispatcher_host_;
1133 1122
1134 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1123 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1135 }; 1124 };
1136 1125
1137 } // namespace content 1126 } // namespace content
1138 1127
1139 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1128 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698