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 <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 virtual WebUI* CreateWebUI(const GURL& url) = 0; | 228 virtual WebUI* CreateWebUI(const GURL& url) = 0; |
229 | 229 |
230 // Returns the committed WebUI if one exists, otherwise the pending one. | 230 // Returns the committed WebUI if one exists, otherwise the pending one. |
231 virtual WebUI* GetWebUI() const = 0; | 231 virtual WebUI* GetWebUI() const = 0; |
232 virtual WebUI* GetCommittedWebUI() const = 0; | 232 virtual WebUI* GetCommittedWebUI() const = 0; |
233 | 233 |
234 // Allows overriding the user agent used for NavigationEntries it owns. | 234 // Allows overriding the user agent used for NavigationEntries it owns. |
235 virtual void SetUserAgentOverride(const std::string& override) = 0; | 235 virtual void SetUserAgentOverride(const std::string& override) = 0; |
236 virtual const std::string& GetUserAgentOverride() const = 0; | 236 virtual const std::string& GetUserAgentOverride() const = 0; |
237 | 237 |
238 #if defined(OS_WIN) && defined(USE_AURA) | 238 #if defined(OS_WIN) |
239 virtual void SetParentNativeViewAccessible( | 239 virtual void SetParentNativeViewAccessible( |
240 gfx::NativeViewAccessible accessible_parent) = 0; | 240 gfx::NativeViewAccessible accessible_parent) = 0; |
241 #endif | 241 #endif |
242 | 242 |
243 // Tab navigation state ------------------------------------------------------ | 243 // Tab navigation state ------------------------------------------------------ |
244 | 244 |
245 // Returns the current navigation properties, which if a navigation is | 245 // Returns the current navigation properties, which if a navigation is |
246 // pending may be provisional (e.g., the navigation could result in a | 246 // pending may be provisional (e.g., the navigation could result in a |
247 // download, in which case the URL would revert to what it was previously). | 247 // download, in which case the URL would revert to what it was previously). |
248 virtual const base::string16& GetTitle() const = 0; | 248 virtual const base::string16& GetTitle() const = 0; |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 | 508 |
509 private: | 509 private: |
510 // This interface should only be implemented inside content. | 510 // This interface should only be implemented inside content. |
511 friend class WebContentsImpl; | 511 friend class WebContentsImpl; |
512 WebContents() {} | 512 WebContents() {} |
513 }; | 513 }; |
514 | 514 |
515 } // namespace content | 515 } // namespace content |
516 | 516 |
517 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 517 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |