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

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

Issue 7044013: Drop url_constants dependency in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reinsert Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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"
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/platform_util.h" 25 #include "chrome/browser/platform_util.h"
26 #include "chrome/browser/prefs/pref_service.h" 26 #include "chrome/browser/prefs/pref_service.h"
27 #include "chrome/browser/profiles/profile.h" 27 #include "chrome/browser/profiles/profile.h"
28 #include "chrome/browser/renderer_host/web_cache_manager.h" 28 #include "chrome/browser/renderer_host/web_cache_manager.h"
29 #include "chrome/browser/renderer_preferences_util.h" 29 #include "chrome/browser/renderer_preferences_util.h"
30 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h" 30 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h"
31 #include "chrome/browser/ui/browser_dialogs.h" 31 #include "chrome/browser/ui/browser_dialogs.h"
32 #include "chrome/common/chrome_constants.h" 32 #include "chrome/common/chrome_constants.h"
33 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
34 #include "chrome/common/render_messages.h" 34 #include "chrome/common/render_messages.h"
35 #include "chrome/common/url_constants.h"
36 #include "content/browser/child_process_security_policy.h" 35 #include "content/browser/child_process_security_policy.h"
37 #include "content/browser/content_browser_client.h" 36 #include "content/browser/content_browser_client.h"
38 #include "content/browser/host_zoom_map.h" 37 #include "content/browser/host_zoom_map.h"
39 #include "content/browser/in_process_webkit/session_storage_namespace.h" 38 #include "content/browser/in_process_webkit/session_storage_namespace.h"
40 #include "content/browser/renderer_host/render_process_host.h" 39 #include "content/browser/renderer_host/render_process_host.h"
41 #include "content/browser/renderer_host/render_view_host.h" 40 #include "content/browser/renderer_host/render_view_host.h"
42 #include "content/browser/renderer_host/render_widget_host_view.h" 41 #include "content/browser/renderer_host/render_widget_host_view.h"
43 #include "content/browser/renderer_host/resource_request_details.h" 42 #include "content/browser/renderer_host/resource_request_details.h"
44 #include "content/browser/site_instance.h" 43 #include "content/browser/site_instance.h"
45 #include "content/browser/tab_contents/interstitial_page.h" 44 #include "content/browser/tab_contents/interstitial_page.h"
46 #include "content/browser/tab_contents/navigation_entry.h" 45 #include "content/browser/tab_contents/navigation_entry.h"
47 #include "content/browser/tab_contents/provisional_load_details.h" 46 #include "content/browser/tab_contents/provisional_load_details.h"
48 #include "content/browser/tab_contents/tab_contents_delegate.h" 47 #include "content/browser/tab_contents/tab_contents_delegate.h"
49 #include "content/browser/tab_contents/tab_contents_observer.h" 48 #include "content/browser/tab_contents/tab_contents_observer.h"
50 #include "content/browser/tab_contents/tab_contents_view.h" 49 #include "content/browser/tab_contents/tab_contents_view.h"
51 #include "content/browser/user_metrics.h" 50 #include "content/browser/user_metrics.h"
52 #include "content/browser/webui/web_ui_factory.h" 51 #include "content/browser/webui/web_ui_factory.h"
53 #include "content/common/bindings_policy.h" 52 #include "content/common/bindings_policy.h"
54 #include "content/common/content_client.h" 53 #include "content/common/content_client.h"
55 #include "content/common/content_restriction.h" 54 #include "content/common/content_restriction.h"
56 #include "content/common/navigation_types.h" 55 #include "content/common/navigation_types.h"
57 #include "content/common/notification_service.h" 56 #include "content/common/notification_service.h"
57 #include "content/common/url_constants.h"
58 #include "content/common/view_messages.h" 58 #include "content/common/view_messages.h"
59 #include "net/base/net_util.h" 59 #include "net/base/net_util.h"
60 #include "net/base/registry_controlled_domain.h" 60 #include "net/base/registry_controlled_domain.h"
61 #include "net/url_request/url_request_context_getter.h" 61 #include "net/url_request/url_request_context_getter.h"
62 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 62 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
63 #include "ui/base/resource/resource_bundle.h" 63 #include "ui/base/resource/resource_bundle.h"
64 #include "ui/gfx/codec/png_codec.h" 64 #include "ui/gfx/codec/png_codec.h"
65 #include "webkit/glue/password_form.h" 65 #include "webkit/glue/password_form.h"
66 #include "webkit/glue/webpreferences.h" 66 #include "webkit/glue/webpreferences.h"
67 67
(...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after
2053 2053
2054 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2054 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2055 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); 2055 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh);
2056 rwh_view->SetSize(view()->GetContainerSize()); 2056 rwh_view->SetSize(view()->GetContainerSize());
2057 } 2057 }
2058 2058
2059 void TabContents::OnOnlineStateChanged(bool online) { 2059 void TabContents::OnOnlineStateChanged(bool online) {
2060 render_view_host()->Send(new ViewMsg_NetworkStateChanged( 2060 render_view_host()->Send(new ViewMsg_NetworkStateChanged(
2061 render_view_host()->routing_id(), online)); 2061 render_view_host()->routing_id(), online));
2062 } 2062 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/render_view_host_manager.cc ('k') | content/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698