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

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

Issue 6878089: Add and use a base::i18n::StringWithDirection for carrying titles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license Created 9 years, 8 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 const NotificationDetails& details); 121 const NotificationDetails& details);
122 122
123 // RenderViewHostDelegate implementation: 123 // RenderViewHostDelegate implementation:
124 virtual View* GetViewDelegate(); 124 virtual View* GetViewDelegate();
125 virtual const GURL& GetURL() const; 125 virtual const GURL& GetURL() const;
126 virtual void RenderViewGone(RenderViewHost* render_view_host, 126 virtual void RenderViewGone(RenderViewHost* render_view_host,
127 base::TerminationStatus status, 127 base::TerminationStatus status,
128 int error_code); 128 int error_code);
129 virtual void DidNavigate(RenderViewHost* render_view_host, 129 virtual void DidNavigate(RenderViewHost* render_view_host,
130 const ViewHostMsg_FrameNavigate_Params& params); 130 const ViewHostMsg_FrameNavigate_Params& params);
131 virtual void UpdateTitle(RenderViewHost* render_view_host, 131 virtual void UpdateTitle(
132 int32 page_id, 132 RenderViewHost* render_view_host,
133 const string16& title, 133 int32 page_id,
134 WebKit::WebTextDirection title_direction) OVERRIDE; 134 const base::i18n::String16WithDirection& title) OVERRIDE;
135 virtual void DomOperationResponse(const std::string& json_string, 135 virtual void DomOperationResponse(const std::string& json_string,
136 int automation_id); 136 int automation_id);
137 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; 137 virtual RendererPreferences GetRendererPrefs(Profile* profile) const;
138 138
139 // Invoked when the page sent a command through DOMAutomation. 139 // Invoked when the page sent a command through DOMAutomation.
140 virtual void CommandReceived(const std::string& command) {} 140 virtual void CommandReceived(const std::string& command) {}
141 141
142 // Invoked with the NavigationEntry that is going to be added to the 142 // Invoked with the NavigationEntry that is going to be added to the
143 // navigation controller. 143 // navigation controller.
144 // Gives an opportunity to sub-classes to set states on the |entry|. 144 // Gives an opportunity to sub-classes to set states on the |entry|.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; 237 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap;
238 static InterstitialPageMap* tab_to_interstitial_page_; 238 static InterstitialPageMap* tab_to_interstitial_page_;
239 239
240 // Settings passed to the renderer. 240 // Settings passed to the renderer.
241 RendererPreferences renderer_preferences_; 241 RendererPreferences renderer_preferences_;
242 242
243 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); 243 DISALLOW_COPY_AND_ASSIGN(InterstitialPage);
244 }; 244 };
245 245
246 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ 246 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698