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

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

Issue 8934011: Rename IntentsHost -> WebIntentsDispatcher and IntentsDispatcher -> WebIntentsHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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"
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/browser_context.h" 16 #include "content/browser/browser_context.h"
17 #include "content/browser/child_process_security_policy.h" 17 #include "content/browser/child_process_security_policy.h"
18 #include "content/browser/debugger/devtools_manager_impl.h" 18 #include "content/browser/debugger/devtools_manager_impl.h"
19 #include "content/browser/download/download_manager.h" 19 #include "content/browser/download/download_manager.h"
20 #include "content/browser/download/download_stats.h" 20 #include "content/browser/download/download_stats.h"
21 #include "content/browser/host_zoom_map.h" 21 #include "content/browser/host_zoom_map.h"
22 #include "content/browser/in_process_webkit/session_storage_namespace.h" 22 #include "content/browser/in_process_webkit/session_storage_namespace.h"
23 #include "content/browser/intents/intents_host_impl.h" 23 #include "content/browser/intents/web_intents_dispatcher_impl.h"
24 #include "content/browser/load_from_memory_cache_details.h" 24 #include "content/browser/load_from_memory_cache_details.h"
25 #include "content/browser/load_notification_details.h" 25 #include "content/browser/load_notification_details.h"
26 #include "content/browser/renderer_host/render_process_host_impl.h" 26 #include "content/browser/renderer_host/render_process_host_impl.h"
27 #include "content/browser/renderer_host/render_view_host.h" 27 #include "content/browser/renderer_host/render_view_host.h"
28 #include "content/browser/renderer_host/render_widget_host_view.h" 28 #include "content/browser/renderer_host/render_widget_host_view.h"
29 #include "content/browser/renderer_host/resource_dispatcher_host.h" 29 #include "content/browser/renderer_host/resource_dispatcher_host.h"
30 #include "content/browser/renderer_host/resource_request_details.h" 30 #include "content/browser/renderer_host/resource_request_details.h"
31 #include "content/browser/site_instance.h" 31 #include "content/browser/site_instance.h"
32 #include "content/browser/tab_contents/interstitial_page.h" 32 #include "content/browser/tab_contents/interstitial_page.h"
33 #include "content/browser/tab_contents/navigation_details.h" 33 #include "content/browser/tab_contents/navigation_details.h"
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 const string16& type, 913 const string16& type,
914 const string16& href, 914 const string16& href,
915 const string16& title, 915 const string16& title,
916 const string16& disposition) { 916 const string16& disposition) {
917 delegate()->RegisterIntentHandler( 917 delegate()->RegisterIntentHandler(
918 this, action, type, href, title, disposition); 918 this, action, type, href, title, disposition);
919 } 919 }
920 920
921 void TabContents::OnWebIntentDispatch(const webkit_glue::WebIntentData& intent, 921 void TabContents::OnWebIntentDispatch(const webkit_glue::WebIntentData& intent,
922 int intent_id) { 922 int intent_id) {
923 IntentsHostImpl* intents_host = new IntentsHostImpl(this, intent, intent_id); 923 WebIntentsDispatcherImpl* intents_dispatcher =
924 delegate()->WebIntentDispatch(this, intents_host); 924 new WebIntentsDispatcherImpl(this, intent, intent_id);
925 delegate()->WebIntentDispatch(this, intents_dispatcher);
925 } 926 }
926 927
927 void TabContents::OnDidStartProvisionalLoadForFrame(int64 frame_id, 928 void TabContents::OnDidStartProvisionalLoadForFrame(int64 frame_id,
928 bool is_main_frame, 929 bool is_main_frame,
929 const GURL& opener_url, 930 const GURL& opener_url,
930 const GURL& url) { 931 const GURL& url) {
931 bool is_error_page = (url.spec() == chrome::kUnreachableWebDataURL); 932 bool is_error_page = (url.spec() == chrome::kUnreachableWebDataURL);
932 GURL validated_url(url); 933 GURL validated_url(url);
933 render_view_host()->FilterURL(ChildProcessSecurityPolicy::GetInstance(), 934 render_view_host()->FilterURL(ChildProcessSecurityPolicy::GetInstance(),
934 GetRenderProcessHost()->GetID(), &validated_url); 935 GetRenderProcessHost()->GetID(), &validated_url);
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after
2068 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); 2069 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh);
2069 // Can be NULL during tests. 2070 // Can be NULL during tests.
2070 if (rwh_view) 2071 if (rwh_view)
2071 rwh_view->SetSize(view()->GetContainerSize()); 2072 rwh_view->SetSize(view()->GetContainerSize());
2072 } 2073 }
2073 2074
2074 bool TabContents::GotResponseToLockMouseRequest(bool allowed) { 2075 bool TabContents::GotResponseToLockMouseRequest(bool allowed) {
2075 return render_view_host() ? 2076 return render_view_host() ?
2076 render_view_host()->GotResponseToLockMouseRequest(allowed) : false; 2077 render_view_host()->GotResponseToLockMouseRequest(allowed) : false;
2077 } 2078 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698