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

Side by Side Diff: chrome/browser/prerender/prerender_contents.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: review feedback 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 CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // URL, i.e. whether there is a match. 110 // URL, i.e. whether there is a match.
111 bool MatchesURL(const GURL& url) const; 111 bool MatchesURL(const GURL& url) const;
112 112
113 // RenderViewHostDelegate implementation. 113 // RenderViewHostDelegate implementation.
114 virtual RenderViewHostDelegate::View* GetViewDelegate(); 114 virtual RenderViewHostDelegate::View* GetViewDelegate();
115 virtual const GURL& GetURL() const; 115 virtual const GURL& GetURL() const;
116 virtual ViewType::Type GetRenderViewType() const; 116 virtual ViewType::Type GetRenderViewType() const;
117 virtual int GetBrowserWindowID() const; 117 virtual int GetBrowserWindowID() const;
118 virtual void DidNavigate(RenderViewHost* render_view_host, 118 virtual void DidNavigate(RenderViewHost* render_view_host,
119 const ViewHostMsg_FrameNavigate_Params& params); 119 const ViewHostMsg_FrameNavigate_Params& params);
120 virtual void UpdateTitle(RenderViewHost* render_view_host, 120 virtual void UpdateTitle(
121 int32 page_id, 121 RenderViewHost* render_view_host,
122 const string16& title, 122 int32 page_id,
123 WebKit::WebTextDirection title_direction) OVERRIDE; 123 const base::i18n::String16WithDirection& title) OVERRIDE;
124 virtual WebPreferences GetWebkitPrefs(); 124 virtual WebPreferences GetWebkitPrefs();
125 virtual void RunJavaScriptMessage(const std::wstring& message, 125 virtual void RunJavaScriptMessage(const std::wstring& message,
126 const std::wstring& default_prompt, 126 const std::wstring& default_prompt,
127 const GURL& frame_url, 127 const GURL& frame_url,
128 const int flags, 128 const int flags,
129 IPC::Message* reply_msg, 129 IPC::Message* reply_msg,
130 bool* did_suppress_message); 130 bool* did_suppress_message);
131 virtual void Close(RenderViewHost* render_view_host); 131 virtual void Close(RenderViewHost* render_view_host);
132 virtual void DidStopLoading(); 132 virtual void DidStopLoading();
133 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; 133 virtual RendererPreferences GetRendererPrefs(Profile* profile) const;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // Maximum amount of private memory that may be used per PrerenderContents, 281 // Maximum amount of private memory that may be used per PrerenderContents,
282 // in MB. 282 // in MB.
283 static const int kMaxPrerenderPrivateMB = 100; 283 static const int kMaxPrerenderPrivateMB = 100;
284 284
285 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 285 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
286 }; 286 };
287 287
288 } // prerender 288 } // prerender
289 289
290 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 290 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698