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

Unified Diff: content/browser/web_contents/interstitial_page_impl.h

Issue 11231077: Move a bunch more code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/ssl/ssl_policy_backend.cc ('k') | content/browser/web_contents/interstitial_page_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/interstitial_page_impl.h
===================================================================
--- content/browser/web_contents/interstitial_page_impl.h (revision 163514)
+++ content/browser/web_contents/interstitial_page_impl.h (working copy)
@@ -16,13 +16,11 @@
#include "content/public/common/renderer_preferences.h"
#include "googleurl/src/gurl.h"
-class WebContentsImpl;
-
namespace content {
class NavigationEntry;
class RenderViewHostImpl;
class WebContentsView;
-}
+class WebContentsImpl;
enum ResourceRequestAction {
BLOCK,
@@ -31,10 +29,10 @@
};
class CONTENT_EXPORT InterstitialPageImpl
- : public NON_EXPORTED_BASE(content::InterstitialPage),
- public content::NotificationObserver,
- public content::RenderViewHostDelegate,
- public content::RenderWidgetHostDelegate {
+ : public NON_EXPORTED_BASE(InterstitialPage),
+ public NotificationObserver,
+ public RenderViewHostDelegate,
+ public RenderWidgetHostDelegate {
public:
// The different state of actions the user can take in an interstitial.
enum ActionState {
@@ -43,10 +41,10 @@
DONT_PROCEED_ACTION // "Don't proceed" was selected.
};
- InterstitialPageImpl(content::WebContents* web_contents,
+ InterstitialPageImpl(WebContents* web_contents,
bool new_navigation,
const GURL& url,
- content::InterstitialPageDelegate* delegate);
+ InterstitialPageDelegate* delegate);
virtual ~InterstitialPageImpl();
// InterstitialPage implementation:
@@ -54,8 +52,8 @@
virtual void Hide() OVERRIDE;
virtual void DontProceed() OVERRIDE;
virtual void Proceed() OVERRIDE;
- virtual content::RenderViewHost* GetRenderViewHostForTesting() const OVERRIDE;
- virtual content::InterstitialPageDelegate* GetDelegateForTesting() OVERRIDE;
+ virtual RenderViewHost* GetRenderViewHostForTesting() const OVERRIDE;
+ virtual InterstitialPageDelegate* GetDelegateForTesting() OVERRIDE;
virtual void DontCreateViewForTesting() OVERRIDE;
virtual void SetSize(const gfx::Size& size) OVERRIDE;
virtual void Focus() OVERRIDE;
@@ -76,32 +74,32 @@
bool reload_on_dont_proceed() const { return reload_on_dont_proceed_; }
protected:
- // content::NotificationObserver method:
+ // NotificationObserver method:
virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
+ const NotificationSource& source,
+ const NotificationDetails& details) OVERRIDE;
// RenderViewHostDelegate implementation:
- virtual content::RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
+ virtual RenderViewHostDelegateView* GetDelegateView() OVERRIDE;
virtual const GURL& GetURL() const OVERRIDE;
- virtual void RenderViewGone(content::RenderViewHost* render_view_host,
+ virtual void RenderViewGone(RenderViewHost* render_view_host,
base::TerminationStatus status,
int error_code) OVERRIDE;
virtual void DidNavigate(
- content::RenderViewHost* render_view_host,
+ RenderViewHost* render_view_host,
const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE;
- virtual void UpdateTitle(content::RenderViewHost* render_view_host,
+ virtual void UpdateTitle(RenderViewHost* render_view_host,
int32 page_id,
const string16& title,
base::i18n::TextDirection title_direction) OVERRIDE;
- virtual content::RendererPreferences GetRendererPrefs(
- content::BrowserContext* browser_context) const OVERRIDE;
+ virtual RendererPreferences GetRendererPrefs(
+ BrowserContext* browser_context) const OVERRIDE;
virtual webkit_glue::WebPreferences GetWebkitPrefs() OVERRIDE;
virtual gfx::Rect GetRootWindowResizerRect() const OVERRIDE;
virtual void CreateNewWindow(
int route_id,
const ViewHostMsg_CreateWindow_Params& params,
- content::SessionStorageNamespace* session_storage_namespace) OVERRIDE;
+ SessionStorageNamespace* session_storage_namespace) OVERRIDE;
virtual void CreateNewWidget(int route_id,
WebKit::WebPopupType popup_type) OVERRIDE;
virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE;
@@ -113,30 +111,30 @@
const gfx::Rect& initial_pos) OVERRIDE;
virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE;
virtual void ShowContextMenu(
- const content::ContextMenuParams& params,
- content::ContextMenuSourceType type) OVERRIDE;
+ const ContextMenuParams& params,
+ ContextMenuSourceType type) OVERRIDE;
// RenderWidgetHostDelegate implementation:
virtual bool PreHandleKeyboardEvent(
- const content::NativeWebKeyboardEvent& event,
+ const NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut) OVERRIDE;
virtual void HandleKeyboardEvent(
- const content::NativeWebKeyboardEvent& event) OVERRIDE;
+ const NativeWebKeyboardEvent& event) OVERRIDE;
bool enabled() const { return enabled_; }
- content::WebContents* web_contents() const;
+ WebContents* web_contents() const;
const GURL& url() const { return url_; }
// Creates the RenderViewHost containing the interstitial content.
// Overriden in unit tests.
- virtual content::RenderViewHost* CreateRenderViewHost();
+ virtual RenderViewHost* CreateRenderViewHost();
// Creates the WebContentsView that shows the interstitial RVH.
// Overriden in unit tests.
- virtual content::WebContentsView* CreateWebContentsView();
+ virtual WebContentsView* CreateWebContentsView();
// Notification magic.
- content::NotificationRegistrar notification_registrar_;
+ NotificationRegistrar notification_registrar_;
private:
class InterstitialPageRVHDelegateView;
@@ -180,7 +178,7 @@
ActionState action_taken_;
// The RenderViewHost displaying the interstitial contents.
- content::RenderViewHostImpl* render_view_host_;
+ RenderViewHostImpl* render_view_host_;
// The IDs for the Render[View|Process]Host hidden by this interstitial.
int original_child_id_;
@@ -206,13 +204,15 @@
scoped_ptr<InterstitialPageRVHDelegateView> rvh_delegate_view_;
// Settings passed to the renderer.
- mutable content::RendererPreferences renderer_preferences_;
+ mutable RendererPreferences renderer_preferences_;
bool create_view_;
- scoped_ptr<content::InterstitialPageDelegate> delegate_;
+ scoped_ptr<InterstitialPageDelegate> delegate_;
DISALLOW_COPY_AND_ASSIGN(InterstitialPageImpl);
};
+} // namespace content
+
#endif // CONTENT_BROWSER_WEB_CONTENTS_INTERSTITIAL_PAGE_IMPL_H_
« no previous file with comments | « content/browser/ssl/ssl_policy_backend.cc ('k') | content/browser/web_contents/interstitial_page_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698