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_ |
11 #pragma once | |
12 | 11 |
13 #include <string> | 12 #include <string> |
14 | 13 |
15 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
16 #include "content/public/browser/global_request_id.h" | 15 #include "content/public/browser/global_request_id.h" |
17 #include "content/public/common/page_transition_types.h" | 16 #include "content/public/common/page_transition_types.h" |
18 #include "content/public/common/referrer.h" | 17 #include "content/public/common/referrer.h" |
19 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
20 #include "webkit/glue/window_open_disposition.h" | 19 #include "webkit/glue/window_open_disposition.h" |
21 | 20 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // Opens a URL with the given disposition. The transition specifies how this | 70 // Opens a URL with the given disposition. The transition specifies how this |
72 // navigation should be recorded in the history system (for example, typed). | 71 // navigation should be recorded in the history system (for example, typed). |
73 // Returns the WebContents the URL is opened in, or NULL if the URL wasn't | 72 // Returns the WebContents the URL is opened in, or NULL if the URL wasn't |
74 // opened immediately. | 73 // opened immediately. |
75 virtual WebContents* OpenURL(const OpenURLParams& params) = 0; | 74 virtual WebContents* OpenURL(const OpenURLParams& params) = 0; |
76 }; | 75 }; |
77 | 76 |
78 } | 77 } |
79 | 78 |
80 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ | 79 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ |
OLD | NEW |