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

Side by Side Diff: content/browser/tab_contents/tab_contents.cc

Issue 9420007: Move RenderWidgetHostView into content namespace. Fix include paths. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_chromeos_gtk build issue not caught by trybots. Created 8 years, 10 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 | Annotate | Revision Log
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 #include "content/browser/tab_contents/tab_contents.h" 5 #include "content/browser/tab_contents/tab_contents.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/metrics/stats_counters.h" 11 #include "base/metrics/stats_counters.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
16 #include "content/browser/child_process_security_policy_impl.h" 16 #include "content/browser/child_process_security_policy_impl.h"
17 #include "content/browser/debugger/devtools_manager_impl.h" 17 #include "content/browser/debugger/devtools_manager_impl.h"
18 #include "content/browser/download/download_stats.h" 18 #include "content/browser/download/download_stats.h"
19 #include "content/browser/download/save_package.h" 19 #include "content/browser/download/save_package.h"
20 #include "content/browser/gpu/gpu_data_manager_impl.h" 20 #include "content/browser/gpu/gpu_data_manager_impl.h"
21 #include "content/browser/gpu/gpu_process_host.h" 21 #include "content/browser/gpu/gpu_process_host.h"
22 #include "content/browser/host_zoom_map_impl.h" 22 #include "content/browser/host_zoom_map_impl.h"
23 #include "content/browser/in_process_webkit/session_storage_namespace.h" 23 #include "content/browser/in_process_webkit/session_storage_namespace.h"
24 #include "content/browser/intents/web_intents_dispatcher_impl.h" 24 #include "content/browser/intents/web_intents_dispatcher_impl.h"
25 #include "content/browser/load_from_memory_cache_details.h" 25 #include "content/browser/load_from_memory_cache_details.h"
26 #include "content/browser/load_notification_details.h" 26 #include "content/browser/load_notification_details.h"
27 #include "content/browser/renderer_host/render_process_host_impl.h" 27 #include "content/browser/renderer_host/render_process_host_impl.h"
28 #include "content/browser/renderer_host/render_view_host.h" 28 #include "content/browser/renderer_host/render_view_host.h"
29 #include "content/browser/renderer_host/render_widget_host_view.h"
30 #include "content/browser/renderer_host/resource_dispatcher_host.h" 29 #include "content/browser/renderer_host/resource_dispatcher_host.h"
31 #include "content/browser/renderer_host/resource_request_details.h" 30 #include "content/browser/renderer_host/resource_request_details.h"
32 #include "content/browser/site_instance_impl.h" 31 #include "content/browser/site_instance_impl.h"
33 #include "content/browser/tab_contents/interstitial_page_impl.h" 32 #include "content/browser/tab_contents/interstitial_page_impl.h"
34 #include "content/browser/tab_contents/navigation_entry_impl.h" 33 #include "content/browser/tab_contents/navigation_entry_impl.h"
35 #include "content/browser/tab_contents/provisional_load_details.h" 34 #include "content/browser/tab_contents/provisional_load_details.h"
36 #include "content/browser/tab_contents/title_updated_details.h" 35 #include "content/browser/tab_contents/title_updated_details.h"
37 #include "content/browser/webui/web_ui_impl.h" 36 #include "content/browser/webui/web_ui_impl.h"
38 #include "content/common/intents_messages.h" 37 #include "content/common/intents_messages.h"
39 #include "content/common/ssl_status_serialization.h" 38 #include "content/common/ssl_status_serialization.h"
40 #include "content/common/view_messages.h" 39 #include "content/common/view_messages.h"
40 #include "content/port/browser/render_widget_host_view_port.h"
41 #include "content/public/browser/browser_context.h" 41 #include "content/public/browser/browser_context.h"
42 #include "content/public/browser/content_browser_client.h" 42 #include "content/public/browser/content_browser_client.h"
43 #include "content/public/browser/devtools_agent_host_registry.h" 43 #include "content/public/browser/devtools_agent_host_registry.h"
44 #include "content/public/browser/download_manager.h" 44 #include "content/public/browser/download_manager.h"
45 #include "content/public/browser/invalidate_type.h" 45 #include "content/public/browser/invalidate_type.h"
46 #include "content/public/browser/javascript_dialogs.h" 46 #include "content/public/browser/javascript_dialogs.h"
47 #include "content/public/browser/navigation_details.h" 47 #include "content/public/browser/navigation_details.h"
48 #include "content/public/browser/notification_service.h" 48 #include "content/public/browser/notification_service.h"
49 #include "content/public/browser/user_metrics.h" 49 #include "content/public/browser/user_metrics.h"
50 #include "content/public/browser/web_contents_delegate.h" 50 #include "content/public/browser/web_contents_delegate.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 using content::DevToolsManagerImpl; 115 using content::DevToolsManagerImpl;
116 using content::DownloadItem; 116 using content::DownloadItem;
117 using content::DownloadManager; 117 using content::DownloadManager;
118 using content::GlobalRequestID; 118 using content::GlobalRequestID;
119 using content::InterstitialPage; 119 using content::InterstitialPage;
120 using content::NavigationController; 120 using content::NavigationController;
121 using content::NavigationEntry; 121 using content::NavigationEntry;
122 using content::NavigationEntryImpl; 122 using content::NavigationEntryImpl;
123 using content::OpenURLParams; 123 using content::OpenURLParams;
124 using content::RenderViewHostDelegate; 124 using content::RenderViewHostDelegate;
125 using content::RenderWidgetHostView;
125 using content::RenderWidgetHostViewPort; 126 using content::RenderWidgetHostViewPort;
126 using content::SiteInstance; 127 using content::SiteInstance;
127 using content::SSLStatus; 128 using content::SSLStatus;
128 using content::UserMetricsAction; 129 using content::UserMetricsAction;
129 using content::WebContents; 130 using content::WebContents;
130 using content::WebContentsObserver; 131 using content::WebContentsObserver;
131 using content::WebUI; 132 using content::WebUI;
132 using content::WebUIController; 133 using content::WebUIController;
133 using content::WebUIControllerFactory; 134 using content::WebUIControllerFactory;
134 135
(...skipping 2331 matching lines...) Expand 10 before | Expand all | Expand 10 after
2466 save_info, 2467 save_info,
2467 this); 2468 this);
2468 } 2469 }
2469 2470
2470 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2471 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2471 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); 2472 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh);
2472 // Can be NULL during tests. 2473 // Can be NULL during tests.
2473 if (rwh_view) 2474 if (rwh_view)
2474 rwh_view->SetSize(GetView()->GetContainerSize()); 2475 rwh_view->SetSize(GetView()->GetContainerSize());
2475 } 2476 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/browser/tab_contents/tab_contents_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698