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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
173 virtual WebUI* CreateWebUI(const GURL& url) = 0; | 173 virtual WebUI* CreateWebUI(const GURL& url) = 0; |
174 | 174 |
175 // Returns the committed WebUI if one exists, otherwise the pending one. | 175 // Returns the committed WebUI if one exists, otherwise the pending one. |
176 virtual WebUI* GetWebUI() const = 0; | 176 virtual WebUI* GetWebUI() const = 0; |
177 virtual WebUI* GetCommittedWebUI() const = 0; | 177 virtual WebUI* GetCommittedWebUI() const = 0; |
178 | 178 |
179 // Allows overriding the user agent used for NavigationEntries it owns. | 179 // Allows overriding the user agent used for NavigationEntries it owns. |
180 virtual void SetUserAgentOverride(const std::string& override) = 0; | 180 virtual void SetUserAgentOverride(const std::string& override) = 0; |
181 virtual const std::string& GetUserAgentOverride() const = 0; | 181 virtual const std::string& GetUserAgentOverride() const = 0; |
182 | 182 |
183 // Allows reading and writing the name of the top-level window. | |
Charlie Reis
2013/04/18 21:26:51
I don't understand why we need this in the public
| |
184 virtual void SetWindowName(const std::string& name); | |
185 virtual const std::string& GetWindowName() const = 0; | |
186 | |
187 | |
188 | |
183 // Tab navigation state ------------------------------------------------------ | 189 // Tab navigation state ------------------------------------------------------ |
184 | 190 |
185 // Returns the current navigation properties, which if a navigation is | 191 // Returns the current navigation properties, which if a navigation is |
186 // pending may be provisional (e.g., the navigation could result in a | 192 // pending may be provisional (e.g., the navigation could result in a |
187 // download, in which case the URL would revert to what it was previously). | 193 // download, in which case the URL would revert to what it was previously). |
188 virtual const string16& GetTitle() const = 0; | 194 virtual const string16& GetTitle() const = 0; |
189 | 195 |
190 // The max page ID for any page that the current SiteInstance has loaded in | 196 // The max page ID for any page that the current SiteInstance has loaded in |
191 // this WebContents. Page IDs are specific to a given SiteInstance and | 197 // this WebContents. Page IDs are specific to a given SiteInstance and |
192 // WebContents, corresponding to a specific RenderView in the renderer. | 198 // WebContents, corresponding to a specific RenderView in the renderer. |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
422 | 428 |
423 private: | 429 private: |
424 // This interface should only be implemented inside content. | 430 // This interface should only be implemented inside content. |
425 friend class WebContentsImpl; | 431 friend class WebContentsImpl; |
426 WebContents() {} | 432 WebContents() {} |
427 }; | 433 }; |
428 | 434 |
429 } // namespace content | 435 } // namespace content |
430 | 436 |
431 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 437 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |