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

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

Issue 6575054: WebUI: Move the core files of WebUI from chrome/browser/webui to content/webui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 9 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
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/browser/webui/web_ui.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include "chrome/browser/printing/print_view_manager.h" 55 #include "chrome/browser/printing/print_view_manager.h"
56 #include "chrome/browser/profiles/profile.h" 56 #include "chrome/browser/profiles/profile.h"
57 #include "chrome/browser/renderer_host/web_cache_manager.h" 57 #include "chrome/browser/renderer_host/web_cache_manager.h"
58 #include "chrome/browser/renderer_preferences_util.h" 58 #include "chrome/browser/renderer_preferences_util.h"
59 #include "chrome/browser/safe_browsing/client_side_detection_host.h" 59 #include "chrome/browser/safe_browsing/client_side_detection_host.h"
60 #include "chrome/browser/sessions/session_types.h" 60 #include "chrome/browser/sessions/session_types.h"
61 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" 61 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h"
62 #include "chrome/browser/tab_contents/thumbnail_generator.h" 62 #include "chrome/browser/tab_contents/thumbnail_generator.h"
63 #include "chrome/browser/translate/page_translated_details.h" 63 #include "chrome/browser/translate/page_translated_details.h"
64 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h" 64 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h"
65 #include "chrome/browser/webui/web_ui.h"
66 #include "chrome/common/bindings_policy.h" 65 #include "chrome/common/bindings_policy.h"
67 #include "chrome/common/chrome_switches.h" 66 #include "chrome/common/chrome_switches.h"
68 #include "chrome/common/content_restriction.h" 67 #include "chrome/common/content_restriction.h"
69 #include "chrome/common/extensions/extension.h" 68 #include "chrome/common/extensions/extension.h"
70 #include "chrome/common/extensions/extension_action.h" 69 #include "chrome/common/extensions/extension_action.h"
71 #include "chrome/common/extensions/extension_icon_set.h" 70 #include "chrome/common/extensions/extension_icon_set.h"
72 #include "chrome/common/extensions/extension_resource.h" 71 #include "chrome/common/extensions/extension_resource.h"
73 #include "chrome/common/extensions/url_pattern.h" 72 #include "chrome/common/extensions/url_pattern.h"
74 #include "chrome/common/navigation_types.h" 73 #include "chrome/common/navigation_types.h"
75 #include "chrome/common/net/url_request_context_getter.h" 74 #include "chrome/common/net/url_request_context_getter.h"
(...skipping 10 matching lines...) Expand all
86 #include "content/browser/renderer_host/render_widget_host_view.h" 85 #include "content/browser/renderer_host/render_widget_host_view.h"
87 #include "content/browser/renderer_host/resource_request_details.h" 86 #include "content/browser/renderer_host/resource_request_details.h"
88 #include "content/browser/site_instance.h" 87 #include "content/browser/site_instance.h"
89 #include "content/browser/tab_contents/infobar_delegate.h" 88 #include "content/browser/tab_contents/infobar_delegate.h"
90 #include "content/browser/tab_contents/interstitial_page.h" 89 #include "content/browser/tab_contents/interstitial_page.h"
91 #include "content/browser/tab_contents/navigation_entry.h" 90 #include "content/browser/tab_contents/navigation_entry.h"
92 #include "content/browser/tab_contents/provisional_load_details.h" 91 #include "content/browser/tab_contents/provisional_load_details.h"
93 #include "content/browser/tab_contents/tab_contents_delegate.h" 92 #include "content/browser/tab_contents/tab_contents_delegate.h"
94 #include "content/browser/tab_contents/tab_contents_observer.h" 93 #include "content/browser/tab_contents/tab_contents_observer.h"
95 #include "content/browser/tab_contents/tab_contents_view.h" 94 #include "content/browser/tab_contents/tab_contents_view.h"
95 #include "content/browser/webui/web_ui.h"
96 #include "net/base/net_util.h" 96 #include "net/base/net_util.h"
97 #include "net/base/registry_controlled_domain.h" 97 #include "net/base/registry_controlled_domain.h"
98 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 98 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
99 #include "ui/base/resource/resource_bundle.h" 99 #include "ui/base/resource/resource_bundle.h"
100 #include "ui/gfx/codec/png_codec.h" 100 #include "ui/gfx/codec/png_codec.h"
101 #include "webkit/glue/password_form.h" 101 #include "webkit/glue/password_form.h"
102 #include "webkit/glue/webpreferences.h" 102 #include "webkit/glue/webpreferences.h"
103 103
104 #if defined(OS_MACOSX) 104 #if defined(OS_MACOSX)
105 #include "app/surface/io_surface_support_mac.h" 105 #include "app/surface/io_surface_support_mac.h"
(...skipping 2756 matching lines...) Expand 10 before | Expand all | Expand 10 after
2862 } 2862 }
2863 2863
2864 bool TabContents::MaybeUsePreloadedPage(const GURL& url) { 2864 bool TabContents::MaybeUsePreloadedPage(const GURL& url) {
2865 prerender::PrerenderManager* pm = profile()->GetPrerenderManager(); 2865 prerender::PrerenderManager* pm = profile()->GetPrerenderManager();
2866 if (pm != NULL) { 2866 if (pm != NULL) {
2867 if (pm->MaybeUsePreloadedPage(this, url)) 2867 if (pm->MaybeUsePreloadedPage(this, url))
2868 return true; 2868 return true;
2869 } 2869 }
2870 return false; 2870 return false;
2871 } 2871 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/browser/webui/web_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698