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

Side by Side Diff: content/public/browser/web_contents.h

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 #if defined(OS_WIN) && defined(USE_AURA) 215 #if defined(OS_WIN) && defined(USE_AURA)
216 virtual void SetParentNativeViewAccessible( 216 virtual void SetParentNativeViewAccessible(
217 gfx::NativeViewAccessible accessible_parent) = 0; 217 gfx::NativeViewAccessible accessible_parent) = 0;
218 #endif 218 #endif
219 219
220 // Tab navigation state ------------------------------------------------------ 220 // Tab navigation state ------------------------------------------------------
221 221
222 // Returns the current navigation properties, which if a navigation is 222 // Returns the current navigation properties, which if a navigation is
223 // pending may be provisional (e.g., the navigation could result in a 223 // pending may be provisional (e.g., the navigation could result in a
224 // download, in which case the URL would revert to what it was previously). 224 // download, in which case the URL would revert to what it was previously).
225 virtual const string16& GetTitle() const = 0; 225 virtual const base::string16& GetTitle() const = 0;
226 226
227 // The max page ID for any page that the current SiteInstance has loaded in 227 // The max page ID for any page that the current SiteInstance has loaded in
228 // this WebContents. Page IDs are specific to a given SiteInstance and 228 // this WebContents. Page IDs are specific to a given SiteInstance and
229 // WebContents, corresponding to a specific RenderView in the renderer. 229 // WebContents, corresponding to a specific RenderView in the renderer.
230 // Page IDs increase with each new page that is loaded by a tab. 230 // Page IDs increase with each new page that is loaded by a tab.
231 virtual int32 GetMaxPageID() = 0; 231 virtual int32 GetMaxPageID() = 0;
232 232
233 // The max page ID for any page that the given SiteInstance has loaded in 233 // The max page ID for any page that the given SiteInstance has loaded in
234 // this WebContents. 234 // this WebContents.
235 virtual int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0; 235 virtual int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0;
236 236
237 // Returns the SiteInstance associated with the current page. 237 // Returns the SiteInstance associated with the current page.
238 virtual SiteInstance* GetSiteInstance() const = 0; 238 virtual SiteInstance* GetSiteInstance() const = 0;
239 239
240 // Returns the SiteInstance for the pending navigation, if any. Otherwise 240 // Returns the SiteInstance for the pending navigation, if any. Otherwise
241 // returns the current SiteInstance. 241 // returns the current SiteInstance.
242 virtual SiteInstance* GetPendingSiteInstance() const = 0; 242 virtual SiteInstance* GetPendingSiteInstance() const = 0;
243 243
244 // Return whether this WebContents is loading a resource. 244 // Return whether this WebContents is loading a resource.
245 virtual bool IsLoading() const = 0; 245 virtual bool IsLoading() const = 0;
246 246
247 // Returns whether this WebContents is waiting for a first-response for the 247 // Returns whether this WebContents is waiting for a first-response for the
248 // main resource of the page. 248 // main resource of the page.
249 virtual bool IsWaitingForResponse() const = 0; 249 virtual bool IsWaitingForResponse() const = 0;
250 250
251 // Return the current load state and the URL associated with it. 251 // Return the current load state and the URL associated with it.
252 virtual const net::LoadStateWithParam& GetLoadState() const = 0; 252 virtual const net::LoadStateWithParam& GetLoadState() const = 0;
253 virtual const string16& GetLoadStateHost() const = 0; 253 virtual const base::string16& GetLoadStateHost() const = 0;
254 254
255 // Return the upload progress. 255 // Return the upload progress.
256 virtual uint64 GetUploadSize() const = 0; 256 virtual uint64 GetUploadSize() const = 0;
257 virtual uint64 GetUploadPosition() const = 0; 257 virtual uint64 GetUploadPosition() const = 0;
258 258
259 // Returns a set of the site URLs currently committed in this tab. 259 // Returns a set of the site URLs currently committed in this tab.
260 virtual std::set<GURL> GetSitesInTab() const = 0; 260 virtual std::set<GURL> GetSitesInTab() const = 0;
261 261
262 // Return the character encoding of the page. 262 // Return the character encoding of the page.
263 virtual const std::string& GetEncoding() const = 0; 263 virtual const std::string& GetEncoding() const = 0;
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 460
461 private: 461 private:
462 // This interface should only be implemented inside content. 462 // This interface should only be implemented inside content.
463 friend class WebContentsImpl; 463 friend class WebContentsImpl;
464 WebContents() {} 464 WebContents() {}
465 }; 465 };
466 466
467 } // namespace content 467 } // namespace content
468 468
469 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 469 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/speech_recognition_manager.h ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698