| 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 // PageNavigator defines an interface that can be used to express the user's | 5 // PageNavigator defines an interface that can be used to express the user's |
| 6 // intention to navigate to a particular URL. The implementing class should | 6 // intention to navigate to a particular URL. The implementing class should |
| 7 // perform the navigation. | 7 // perform the navigation. |
| 8 | 8 |
| 9 #ifndef CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ | 9 #ifndef CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ |
| 10 #define CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ | 10 #define CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 private: | 63 private: |
| 64 OpenURLParams(); | 64 OpenURLParams(); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 class PageNavigator { | 67 class PageNavigator { |
| 68 public: | 68 public: |
| 69 virtual ~PageNavigator() {} | 69 virtual ~PageNavigator() {} |
| 70 | 70 |
| 71 // Opens a URL with the given disposition. The transition specifies how this | 71 // Opens a URL with the given disposition. The transition specifies how this |
| 72 // navigation should be recorded in the history system (for example, typed). | 72 // navigation should be recorded in the history system (for example, typed). |
| 73 // Returns the TabContents the URL is opened in, or NULL if the URL wasn't | 73 // Returns the WebContents the URL is opened in, or NULL if the URL wasn't |
| 74 // opened immediately. | 74 // opened immediately. |
| 75 virtual WebContents* OpenURL(const OpenURLParams& params) = 0; | 75 virtual WebContents* OpenURL(const OpenURLParams& params) = 0; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } | 78 } |
| 79 | 79 |
| 80 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ | 80 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ |
| OLD | NEW |