OLD | NEW |
---|---|
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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
310 | 310 |
311 virtual const PageImportanceSignals& GetPageImportanceSignals() const = 0; | 311 virtual const PageImportanceSignals& GetPageImportanceSignals() const = 0; |
312 | 312 |
313 // Tab navigation state ------------------------------------------------------ | 313 // Tab navigation state ------------------------------------------------------ |
314 | 314 |
315 // Returns the current navigation properties, which if a navigation is | 315 // Returns the current navigation properties, which if a navigation is |
316 // pending may be provisional (e.g., the navigation could result in a | 316 // pending may be provisional (e.g., the navigation could result in a |
317 // download, in which case the URL would revert to what it was previously). | 317 // download, in which case the URL would revert to what it was previously). |
318 virtual const base::string16& GetTitle() const = 0; | 318 virtual const base::string16& GetTitle() const = 0; |
319 | 319 |
320 // Saves the given title to the navigation entry and does associated work. It | |
321 // will update history and the view for the new title, and also synthesize | |
Lei Zhang
2016/07/13 23:17:17
"with the new title" ?
afakhry
2016/07/13 23:36:17
Done.
| |
322 // titles for file URLs that have none (so we require that the URL of the | |
Lei Zhang
2016/07/13 23:17:17
I don't quite understand the part in the parenthes
afakhry
2016/07/13 23:36:17
Probably! I just copied this comment from: https:/
Lei Zhang
2016/07/13 23:44:24
Sounds like a good time to fix both. I think it sh
afakhry
2016/07/14 00:01:53
Done.
| |
323 // entry already be set). | |
324 virtual void UpdateTitleForEntry(NavigationEntry* entry, | |
325 const base::string16& title) = 0; | |
326 | |
320 // The max page ID for any page that the current SiteInstance has loaded in | 327 // The max page ID for any page that the current SiteInstance has loaded in |
321 // this WebContents. Page IDs are specific to a given SiteInstance and | 328 // this WebContents. Page IDs are specific to a given SiteInstance and |
322 // WebContents, corresponding to a specific RenderView in the renderer. | 329 // WebContents, corresponding to a specific RenderView in the renderer. |
323 // Page IDs increase with each new page that is loaded by a tab. | 330 // Page IDs increase with each new page that is loaded by a tab. |
324 virtual int32_t GetMaxPageID() = 0; | 331 virtual int32_t GetMaxPageID() = 0; |
325 | 332 |
326 // The max page ID for any page that the given SiteInstance has loaded in | 333 // The max page ID for any page that the given SiteInstance has loaded in |
327 // this WebContents. | 334 // this WebContents. |
328 virtual int32_t GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0; | 335 virtual int32_t GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0; |
329 | 336 |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
749 | 756 |
750 private: | 757 private: |
751 // This interface should only be implemented inside content. | 758 // This interface should only be implemented inside content. |
752 friend class WebContentsImpl; | 759 friend class WebContentsImpl; |
753 WebContents() {} | 760 WebContents() {} |
754 }; | 761 }; |
755 | 762 |
756 } // namespace content | 763 } // namespace content |
757 | 764 |
758 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 765 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |