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

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: 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // URL, i.e. whether there is a match. 106 // URL, i.e. whether there is a match.
107 bool MatchesURL(const GURL& url) const; 107 bool MatchesURL(const GURL& url) const;
108 108
109 // RenderViewHostDelegate implementation. 109 // RenderViewHostDelegate implementation.
110 virtual RenderViewHostDelegate::View* GetViewDelegate(); 110 virtual RenderViewHostDelegate::View* GetViewDelegate();
111 virtual const GURL& GetURL() const; 111 virtual const GURL& GetURL() const;
112 virtual ViewType::Type GetRenderViewType() const; 112 virtual ViewType::Type GetRenderViewType() const;
113 virtual int GetBrowserWindowID() const; 113 virtual int GetBrowserWindowID() const;
114 virtual void DidNavigate(RenderViewHost* render_view_host, 114 virtual void DidNavigate(RenderViewHost* render_view_host,
115 const ViewHostMsg_FrameNavigate_Params& params); 115 const ViewHostMsg_FrameNavigate_Params& params);
116 virtual void UpdateTitle(RenderViewHost* render_view_host, 116 virtual void UpdateTitle(
117 int32 page_id, 117 RenderViewHost* render_view_host,
118 const string16& title, 118 int32 page_id,
119 WebKit::WebTextDirection title_direction) OVERRIDE; 119 const base::i18n::StringWithDirection& title) OVERRIDE;
120 virtual WebPreferences GetWebkitPrefs(); 120 virtual WebPreferences GetWebkitPrefs();
121 virtual void RunJavaScriptMessage(const std::wstring& message, 121 virtual void RunJavaScriptMessage(const std::wstring& message,
122 const std::wstring& default_prompt, 122 const std::wstring& default_prompt,
123 const GURL& frame_url, 123 const GURL& frame_url,
124 const int flags, 124 const int flags,
125 IPC::Message* reply_msg, 125 IPC::Message* reply_msg,
126 bool* did_suppress_message); 126 bool* did_suppress_message);
127 virtual void Close(RenderViewHost* render_view_host); 127 virtual void Close(RenderViewHost* render_view_host);
128 virtual void DidStopLoading(); 128 virtual void DidStopLoading();
129 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; 129 virtual RendererPreferences GetRendererPrefs(Profile* profile) const;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Maximum amount of private memory that may be used per PrerenderContents, 277 // Maximum amount of private memory that may be used per PrerenderContents,
278 // in MB. 278 // in MB.
279 static const int kMaxPrerenderPrivateMB = 100; 279 static const int kMaxPrerenderPrivateMB = 100;
280 280
281 DISALLOW_COPY_AND_ASSIGN(PrerenderContents); 281 DISALLOW_COPY_AND_ASSIGN(PrerenderContents);
282 }; 282 };
283 283
284 } // prerender 284 } // prerender
285 285
286 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_ 286 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698