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

Side by Side Diff: content/public/browser/interstitial_page.h

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review, take 2 Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_
6 #define CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ 6 #define CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
11 class GURL; 11 class GURL;
12 class RenderViewHost;
13 12
14 namespace gfx { 13 namespace gfx {
15 class Size; 14 class Size;
16 } 15 }
17 16
18 namespace content { 17 namespace content {
19 18
20 class InterstitialPageDelegate; 19 class InterstitialPageDelegate;
20 class RenderViewHost;
21 class WebContents; 21 class WebContents;
22 22
23 // This class is used for showing interstitial pages, pages that show some 23 // This class is used for showing interstitial pages, pages that show some
24 // informative message asking for user validation before reaching the target 24 // informative message asking for user validation before reaching the target
25 // page. (Navigating to a page served over bad HTTPS or a page containing 25 // page. (Navigating to a page served over bad HTTPS or a page containing
26 // malware are typical cases where an interstitial is required.) 26 // malware are typical cases where an interstitial is required.)
27 // 27 //
28 // If specified in the Create function, this class creates a navigation entry so 28 // If specified in the Create function, this class creates a navigation entry so
29 // that when the interstitial shows, the current entry is the target URL. 29 // that when the interstitial shows, the current entry is the target URL.
30 // 30 //
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // the target URL. 71 // the target URL.
72 // Warning: 'this' has been deleted when this method returns. 72 // Warning: 'this' has been deleted when this method returns.
73 virtual void Proceed() = 0; 73 virtual void Proceed() = 0;
74 74
75 // Sizes the RenderViewHost showing the actual interstitial page contents. 75 // Sizes the RenderViewHost showing the actual interstitial page contents.
76 virtual void SetSize(const gfx::Size& size) = 0; 76 virtual void SetSize(const gfx::Size& size) = 0;
77 77
78 // Sets the focus to the interstitial. 78 // Sets the focus to the interstitial.
79 virtual void Focus() = 0; 79 virtual void Focus() = 0;
80 80
81 virtual RenderViewHost* GetRenderViewHostForTesting() const = 0; 81 virtual content::RenderViewHost* GetRenderViewHostForTesting() const = 0;
jam 2012/03/05 23:59:28 ditto
Jói 2012/03/06 16:38:55 Done.
82 virtual InterstitialPageDelegate* GetDelegateForTesting() = 0; 82 virtual InterstitialPageDelegate* GetDelegateForTesting() = 0;
83 virtual void DontCreateViewForTesting() = 0; 83 virtual void DontCreateViewForTesting() = 0;
84 }; 84 };
85 85
86 } // namespace content 86 } // namespace content
87 87
88 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ 88 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698