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

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

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: slight tweaking for comments Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 virtual const GURL& GetURL() const OVERRIDE; 120 virtual const GURL& GetURL() const OVERRIDE;
121 virtual void RenderViewGone(RenderViewHost* render_view_host, 121 virtual void RenderViewGone(RenderViewHost* render_view_host,
122 base::TerminationStatus status, 122 base::TerminationStatus status,
123 int error_code) OVERRIDE; 123 int error_code) OVERRIDE;
124 virtual void DidNavigate( 124 virtual void DidNavigate(
125 RenderViewHost* render_view_host, 125 RenderViewHost* render_view_host,
126 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; 126 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE;
127 virtual void UpdateTitle(RenderViewHost* render_view_host, 127 virtual void UpdateTitle(RenderViewHost* render_view_host,
128 int32 page_id, 128 int32 page_id,
129 const string16& title) OVERRIDE; 129 const string16& title) OVERRIDE;
130 virtual RendererPreferences GetRendererPrefs(Profile* profile) const OVERRIDE; 130 virtual RendererPreferences GetRendererPrefs(
131 content::BrowserContext* browser_context) const OVERRIDE;
131 132
132 // Invoked with the NavigationEntry that is going to be added to the 133 // Invoked with the NavigationEntry that is going to be added to the
133 // navigation controller. 134 // navigation controller.
134 // Gives an opportunity to sub-classes to set states on the |entry|. 135 // Gives an opportunity to sub-classes to set states on the |entry|.
135 // Note that this is only called if the InterstitialPage was constructed with 136 // Note that this is only called if the InterstitialPage was constructed with
136 // |create_navigation_entry| set to true. 137 // |create_navigation_entry| set to true.
137 virtual void UpdateEntry(NavigationEntry* entry) {} 138 virtual void UpdateEntry(NavigationEntry* entry) {}
138 139
139 bool enabled() const { return enabled_; } 140 bool enabled() const { return enabled_; }
140 TabContents* tab() const { return tab_; } 141 TabContents* tab() const { return tab_; }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; 236 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap;
236 static InterstitialPageMap* tab_to_interstitial_page_; 237 static InterstitialPageMap* tab_to_interstitial_page_;
237 238
238 // Settings passed to the renderer. 239 // Settings passed to the renderer.
239 RendererPreferences renderer_preferences_; 240 RendererPreferences renderer_preferences_;
240 241
241 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); 242 DISALLOW_COPY_AND_ASSIGN(InterstitialPage);
242 }; 243 };
243 244
244 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ 245 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_
OLDNEW
« no previous file with comments | « content/browser/ssl/ssl_policy_backend.cc ('k') | content/browser/tab_contents/interstitial_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698