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

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

Issue 1306053008: Avoid creating a RenderWidgetHostView for proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: only call InitRenderView when creating the main frame 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 (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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 void SelectRange(const gfx::Point& base, const gfx::Point& extent) override; 584 void SelectRange(const gfx::Point& base, const gfx::Point& extent) override;
585 void AdjustSelectionByCharacterOffset(int start_adjust, int end_adjust) 585 void AdjustSelectionByCharacterOffset(int start_adjust, int end_adjust)
586 override; 586 override;
587 587
588 // RenderFrameHostManager::Delegate ------------------------------------------ 588 // RenderFrameHostManager::Delegate ------------------------------------------
589 589
590 bool CreateRenderViewForRenderManager( 590 bool CreateRenderViewForRenderManager(
591 RenderViewHost* render_view_host, 591 RenderViewHost* render_view_host,
592 int opener_frame_routing_id, 592 int opener_frame_routing_id,
593 int proxy_routing_id, 593 int proxy_routing_id,
594 const FrameReplicationState& replicated_frame_state, 594 const FrameReplicationState& replicated_frame_state) override;
595 bool for_main_frame_navigation) override; 595 void CreateRenderWidgetHostViewForRenderManager(
596 RenderViewHost* render_view_host) override;
596 bool CreateRenderFrameForRenderManager(RenderFrameHost* render_frame_host, 597 bool CreateRenderFrameForRenderManager(RenderFrameHost* render_frame_host,
597 int parent_routing_id, 598 int parent_routing_id,
598 int previous_sibling_routing_id, 599 int previous_sibling_routing_id,
599 int proxy_routing_id) override; 600 int proxy_routing_id) override;
600 void BeforeUnloadFiredFromRenderManager( 601 void BeforeUnloadFiredFromRenderManager(
601 bool proceed, 602 bool proceed,
602 const base::TimeTicks& proceed_time, 603 const base::TimeTicks& proceed_time,
603 bool* proceed_to_fire_unload) override; 604 bool* proceed_to_fire_unload) override;
604 void RenderProcessGoneFromRenderManager( 605 void RenderProcessGoneFromRenderManager(
605 RenderViewHost* render_view_host) override; 606 RenderViewHost* render_view_host) override;
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 // Adds/removes a callback called on creation of each new WebContents. 1317 // Adds/removes a callback called on creation of each new WebContents.
1317 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1318 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1318 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1319 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1319 1320
1320 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1321 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1321 }; 1322 };
1322 1323
1323 } // namespace content 1324 } // namespace content
1324 1325
1325 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1326 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698