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

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

Issue 1629013002: Allow a main interstitial frame to act as an ExtensionMessagePort opener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extension-message-port-onDisconnect-580882
Patch Set: Remove trailing space Created 4 years, 11 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_INTERSTITIAL_PAGE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool new_navigation, 57 bool new_navigation,
58 const GURL& url, 58 const GURL& url,
59 InterstitialPageDelegate* delegate); 59 InterstitialPageDelegate* delegate);
60 ~InterstitialPageImpl() override; 60 ~InterstitialPageImpl() override;
61 61
62 // InterstitialPage implementation: 62 // InterstitialPage implementation:
63 void Show() override; 63 void Show() override;
64 void Hide() override; 64 void Hide() override;
65 void DontProceed() override; 65 void DontProceed() override;
66 void Proceed() override; 66 void Proceed() override;
67 WebContents* GetWebContents() const override;
67 RenderFrameHost* GetMainFrame() const override; 68 RenderFrameHost* GetMainFrame() const override;
68 InterstitialPageDelegate* GetDelegateForTesting() override; 69 InterstitialPageDelegate* GetDelegateForTesting() override;
69 void DontCreateViewForTesting() override; 70 void DontCreateViewForTesting() override;
70 void SetSize(const gfx::Size& size) override; 71 void SetSize(const gfx::Size& size) override;
71 void Focus() override; 72 void Focus() override;
72 73
73 // Allows the user to navigate away by disabling the interstitial, canceling 74 // Allows the user to navigate away by disabling the interstitial, canceling
74 // the pending request, and unblocking the hidden renderer. The interstitial 75 // the pending request, and unblocking the hidden renderer. The interstitial
75 // will stay visible until the navigation completes. 76 // will stay visible until the navigation completes.
76 void CancelForNavigation(); 77 void CancelForNavigation();
(...skipping 23 matching lines...) Expand all
100 const NotificationDetails& details) override; 101 const NotificationDetails& details) override;
101 102
102 // RenderFrameHostDelegate implementation: 103 // RenderFrameHostDelegate implementation:
103 bool OnMessageReceived(RenderFrameHost* render_frame_host, 104 bool OnMessageReceived(RenderFrameHost* render_frame_host,
104 const IPC::Message& message) override; 105 const IPC::Message& message) override;
105 void RenderFrameCreated(RenderFrameHost* render_frame_host) override; 106 void RenderFrameCreated(RenderFrameHost* render_frame_host) override;
106 void UpdateTitle(RenderFrameHost* render_frame_host, 107 void UpdateTitle(RenderFrameHost* render_frame_host,
107 int32_t page_id, 108 int32_t page_id,
108 const base::string16& title, 109 const base::string16& title,
109 base::i18n::TextDirection title_direction) override; 110 base::i18n::TextDirection title_direction) override;
111 InterstitialPage* GetAsInterstitialPage() override;
110 AccessibilityMode GetAccessibilityMode() const override; 112 AccessibilityMode GetAccessibilityMode() const override;
111 void Cut() override; 113 void Cut() override;
112 void Copy() override; 114 void Copy() override;
113 void Paste() override; 115 void Paste() override;
114 void SelectAll() override; 116 void SelectAll() override;
115 117
116 // RenderViewHostDelegate implementation: 118 // RenderViewHostDelegate implementation:
117 RenderViewHostDelegateView* GetDelegateView() override; 119 RenderViewHostDelegateView* GetDelegateView() override;
118 bool OnMessageReceived(RenderViewHost* render_view_host, 120 bool OnMessageReceived(RenderViewHost* render_view_host,
119 const IPC::Message& message) override; 121 const IPC::Message& message) override;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 scoped_refptr<SessionStorageNamespace> session_storage_namespace_; 296 scoped_refptr<SessionStorageNamespace> session_storage_namespace_;
295 297
296 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_; 298 base::WeakPtrFactory<InterstitialPageImpl> weak_ptr_factory_;
297 299
298 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl); 300 DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl);
299 }; 301 };
300 302
301 } // namespace content 303 } // namespace content
302 304
303 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_ 305 #endif // CONTENT_BROWSER_FRAME_HOST_INTERSTITIAL_PAGE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698