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

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

Issue 248963007: Perform navigation policy check on UI thread for --site-per-process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT. Created 6 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
« no previous file with comments | « no previous file | content/browser/frame_host/interstitial_page_navigator_impl.cc » ('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 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_INTERSTITIAL_PAGE_NAVIGATOR_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_NAVIGATOR_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_NAVIGATOR_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_NAVIGATOR_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/browser/frame_host/navigator.h" 9 #include "content/browser/frame_host/navigator.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class NavigationControllerImpl; 14 class NavigationControllerImpl;
15 class InterstitialPageImpl; 15 class InterstitialPageImpl;
16 16
17 // Navigator implementation specific to InterstialPageImpl. It allows only one 17 // Navigator implementation specific to InterstialPageImpl. It allows only one
18 // navigation to commit, since interstitial pages are not allowed to navigate. 18 // navigation to commit, since interstitial pages are not allowed to navigate.
19 class CONTENT_EXPORT InterstitialPageNavigatorImpl : public Navigator { 19 class CONTENT_EXPORT InterstitialPageNavigatorImpl : public Navigator {
20 public: 20 public:
21 InterstitialPageNavigatorImpl( 21 InterstitialPageNavigatorImpl(
22 InterstitialPageImpl* interstitial, 22 InterstitialPageImpl* interstitial,
23 NavigationControllerImpl* navigation_controller); 23 NavigationControllerImpl* navigation_controller);
24 24
25 virtual NavigationController* GetController() OVERRIDE;
25 virtual void DidNavigate( 26 virtual void DidNavigate(
26 RenderFrameHostImpl* render_frame_host, 27 RenderFrameHostImpl* render_frame_host,
27 const FrameHostMsg_DidCommitProvisionalLoad_Params& 28 const FrameHostMsg_DidCommitProvisionalLoad_Params&
28 input_params) OVERRIDE; 29 input_params) OVERRIDE;
29 30
30 private: 31 private:
31 virtual ~InterstitialPageNavigatorImpl() {} 32 virtual ~InterstitialPageNavigatorImpl() {}
32 33
33 // The InterstitialPage with which this navigator object is associated. 34 // The InterstitialPage with which this navigator object is associated.
34 // Non owned pointer. 35 // Non owned pointer.
35 InterstitialPageImpl* interstitial_; 36 InterstitialPageImpl* interstitial_;
36 37
38 // The NavigationController associated with this navigator.
39 NavigationControllerImpl* controller_;
40
37 DISALLOW_COPY_AND_ASSIGN(InterstitialPageNavigatorImpl); 41 DISALLOW_COPY_AND_ASSIGN(InterstitialPageNavigatorImpl);
38 }; 42 };
39 43
40 } // namespace content 44 } // namespace content
41 45
42 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_NAVIGATOR_IMPL_H_ 46 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_NAVIGATOR_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/interstitial_page_navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698