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

Side by Side Diff: content/browser/frame_host/render_frame_host_manager.h

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "content/browser/renderer_host/render_view_host_delegate.h" 12 #include "content/browser/renderer_host/render_view_host_delegate.h"
13 #include "content/browser/site_instance_impl.h" 13 #include "content/browser/site_instance_impl.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/browser/global_request_id.h" 15 #include "content/public/browser/global_request_id.h"
16 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 #include "content/public/common/referrer.h" 18 #include "content/public/common/referrer.h"
19 #include "ui/base/page_transition_types.h"
19 20
20 struct FrameHostMsg_BeginNavigation_Params; 21 struct FrameHostMsg_BeginNavigation_Params;
21 struct FrameMsg_Navigate_Params; 22 struct FrameMsg_Navigate_Params;
22 23
23 namespace content { 24 namespace content {
24 class BrowserContext; 25 class BrowserContext;
25 class CrossProcessFrameConnector; 26 class CrossProcessFrameConnector;
26 class CrossSiteTransferringRequest; 27 class CrossSiteTransferringRequest;
27 class InterstitialPageImpl; 28 class InterstitialPageImpl;
28 class FrameTreeNode; 29 class FrameTreeNode;
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // ensure that the old RenderFrameHost runs its unload handler first and 226 // ensure that the old RenderFrameHost runs its unload handler first and
226 // determine whether a RenderFrameHost transfer is needed. 227 // determine whether a RenderFrameHost transfer is needed.
227 // |cross_site_transferring_request| is NULL if a request is not being 228 // |cross_site_transferring_request| is NULL if a request is not being
228 // transferred between renderers. 229 // transferred between renderers.
229 void OnCrossSiteResponse( 230 void OnCrossSiteResponse(
230 RenderFrameHostImpl* pending_render_frame_host, 231 RenderFrameHostImpl* pending_render_frame_host,
231 const GlobalRequestID& global_request_id, 232 const GlobalRequestID& global_request_id,
232 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request, 233 scoped_ptr<CrossSiteTransferringRequest> cross_site_transferring_request,
233 const std::vector<GURL>& transfer_url_chain, 234 const std::vector<GURL>& transfer_url_chain,
234 const Referrer& referrer, 235 const Referrer& referrer,
235 PageTransition page_transition, 236 ui::PageTransition page_transition,
236 bool should_replace_current_entry); 237 bool should_replace_current_entry);
237 238
238 // Received a response from CrossSiteResourceHandler. If the navigation 239 // Received a response from CrossSiteResourceHandler. If the navigation
239 // specifies a transition, this is called and the navigation will not resume 240 // specifies a transition, this is called and the navigation will not resume
240 // until ResumeResponseDeferredAtStart. 241 // until ResumeResponseDeferredAtStart.
241 void OnDeferredAfterResponseStarted( 242 void OnDeferredAfterResponseStarted(
242 const GlobalRequestID& global_request_id, 243 const GlobalRequestID& global_request_id,
243 RenderFrameHostImpl* pending_render_frame_host); 244 RenderFrameHostImpl* pending_render_frame_host);
244 245
245 // Resume navigation paused after receiving response headers. 246 // Resume navigation paused after receiving response headers.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // Returns true if it is safe to reuse the current WebUI when navigating from 376 // Returns true if it is safe to reuse the current WebUI when navigating from
376 // |current_entry| to |new_entry|. 377 // |current_entry| to |new_entry|.
377 bool ShouldReuseWebUI( 378 bool ShouldReuseWebUI(
378 const NavigationEntry* current_entry, 379 const NavigationEntry* current_entry,
379 const NavigationEntryImpl* new_entry) const; 380 const NavigationEntryImpl* new_entry) const;
380 381
381 // Returns the SiteInstance to use for the navigation. 382 // Returns the SiteInstance to use for the navigation.
382 SiteInstance* GetSiteInstanceForNavigation( 383 SiteInstance* GetSiteInstanceForNavigation(
383 const GURL& dest_url, 384 const GURL& dest_url,
384 SiteInstance* dest_instance, 385 SiteInstance* dest_instance,
385 PageTransition dest_transition, 386 ui::PageTransition dest_transition,
386 bool dest_is_restore, 387 bool dest_is_restore,
387 bool dest_is_view_source_mode); 388 bool dest_is_view_source_mode);
388 389
389 // Returns an appropriate SiteInstance object for the given |dest_url|, 390 // Returns an appropriate SiteInstance object for the given |dest_url|,
390 // possibly reusing the current SiteInstance. If --process-per-tab is used, 391 // possibly reusing the current SiteInstance. If --process-per-tab is used,
391 // this is only called when ShouldSwapBrowsingInstancesForNavigation returns 392 // this is only called when ShouldSwapBrowsingInstancesForNavigation returns
392 // true. |dest_instance| will be used if it is not null. 393 // true. |dest_instance| will be used if it is not null.
393 // This is a helper function for GetSiteInstanceForNavigation. 394 // This is a helper function for GetSiteInstanceForNavigation.
394 SiteInstance* GetSiteInstanceForURL( 395 SiteInstance* GetSiteInstanceForURL(
395 const GURL& dest_url, 396 const GURL& dest_url,
396 SiteInstance* dest_instance, 397 SiteInstance* dest_instance,
397 PageTransition dest_transition, 398 ui::PageTransition dest_transition,
398 bool dest_is_restore, 399 bool dest_is_restore,
399 bool dest_is_view_source_mode, 400 bool dest_is_view_source_mode,
400 SiteInstance* current_instance, 401 SiteInstance* current_instance,
401 bool force_browsing_instance_swap); 402 bool force_browsing_instance_swap);
402 403
403 // Creates a new RenderFrameHostImpl for the |new_instance| while respecting 404 // Creates a new RenderFrameHostImpl for the |new_instance| while respecting
404 // the opener route if needed and stores it in pending_render_frame_host_. 405 // the opener route if needed and stores it in pending_render_frame_host_.
405 void CreateRenderFrameHostForNewSiteInstance( 406 void CreateRenderFrameHostForNewSiteInstance(
406 SiteInstance* old_instance, 407 SiteInstance* old_instance,
407 SiteInstance* new_instance, 408 SiteInstance* new_instance,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 scoped_ptr<NavigationRequest> navigation_request_; 537 scoped_ptr<NavigationRequest> navigation_request_;
537 538
538 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; 539 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_;
539 540
540 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); 541 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager);
541 }; 542 };
542 543
543 } // namespace content 544 } // namespace content
544 545
545 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 546 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/frame_host/render_frame_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698