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

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

Issue 1457203002: Make WebContentsImpl aware of all of its RWHs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix RW destruction by Shutdown Created 5 years, 1 month 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 void RequestOpenURL(RenderFrameHostImpl* render_frame_host, 553 void RequestOpenURL(RenderFrameHostImpl* render_frame_host,
554 const OpenURLParams& params) override; 554 const OpenURLParams& params) override;
555 bool ShouldPreserveAbortedURLs() override; 555 bool ShouldPreserveAbortedURLs() override;
556 void DidStartLoading(FrameTreeNode* frame_tree_node, 556 void DidStartLoading(FrameTreeNode* frame_tree_node,
557 bool to_different_document) override; 557 bool to_different_document) override;
558 void DidStopLoading() override; 558 void DidStopLoading() override;
559 void DidChangeLoadProgress() override; 559 void DidChangeLoadProgress() override;
560 560
561 // RenderWidgetHostDelegate -------------------------------------------------- 561 // RenderWidgetHostDelegate --------------------------------------------------
562 562
563 void RenderWidgetCreated(RenderWidgetHostImpl* render_widget_host) override;
563 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override; 564 void RenderWidgetDeleted(RenderWidgetHostImpl* render_widget_host) override;
564 void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) override; 565 void RenderWidgetGotFocus(RenderWidgetHostImpl* render_widget_host) override;
565 void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host, 566 void RenderWidgetWasResized(RenderWidgetHostImpl* render_widget_host,
566 bool width_changed) override; 567 bool width_changed) override;
567 void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host, 568 void ResizeDueToAutoResize(RenderWidgetHostImpl* render_widget_host,
568 const gfx::Size& new_size) override; 569 const gfx::Size& new_size) override;
569 void ScreenInfoChanged() override; 570 void ScreenInfoChanged() override;
570 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 571 bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
571 bool* is_keyboard_shortcut) override; 572 bool* is_keyboard_shortcut) override;
572 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override; 573 void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) override;
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 // Adds/removes a callback called on creation of each new WebContents. 1350 // Adds/removes a callback called on creation of each new WebContents.
1350 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1351 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1351 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1352 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1352 1353
1353 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1354 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1354 }; 1355 };
1355 1356
1356 } // namespace content 1357 } // namespace content
1357 1358
1358 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1359 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698