| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_TAB_CONTENTS_NAVIGATION_DETAILS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_DETAILS_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_DETAILS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_DETAILS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include "content/common/navigation_types.h" | 10 #include "content/common/navigation_types.h" |
| 11 #include "content/common/content_export.h" |
| 11 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 12 | 13 |
| 13 class NavigationEntry; | 14 class NavigationEntry; |
| 14 class TabContents; | 15 class TabContents; |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 | 18 |
| 18 // Provides the details for a NOTIFY_NAV_ENTRY_COMMITTED notification. | 19 // Provides the details for a NOTIFY_NAV_ENTRY_COMMITTED notification. |
| 19 // TODO(brettw) this mostly duplicates ProvisionalLoadDetails, it would be | 20 // TODO(brettw) this mostly duplicates ProvisionalLoadDetails, it would be |
| 20 // nice to unify these somehow. | 21 // nice to unify these somehow. |
| 21 struct LoadCommittedDetails { | 22 struct CONTENT_EXPORT LoadCommittedDetails { |
| 22 // By default, the entry will be filled according to a new main frame | 23 // By default, the entry will be filled according to a new main frame |
| 23 // navigation. | 24 // navigation. |
| 24 LoadCommittedDetails(); | 25 LoadCommittedDetails(); |
| 25 | 26 |
| 26 // The committed entry. This will be the active entry in the controller. | 27 // The committed entry. This will be the active entry in the controller. |
| 27 NavigationEntry* entry; | 28 NavigationEntry* entry; |
| 28 | 29 |
| 29 // The type of navigation that just occurred. Note that not all types of | 30 // The type of navigation that just occurred. Note that not all types of |
| 30 // navigations in the enum are valid here, since some of them don't actually | 31 // navigations in the enum are valid here, since some of them don't actually |
| 31 // cause a "commit" and won't generate this notification. | 32 // cause a "commit" and won't generate this notification. |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // The target URL. | 98 // The target URL. |
| 98 GURL target_url; | 99 GURL target_url; |
| 99 | 100 |
| 100 // The target tab contents. | 101 // The target tab contents. |
| 101 TabContents* target_tab_contents; | 102 TabContents* target_tab_contents; |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace content | 105 } // namespace content |
| 105 | 106 |
| 106 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_DETAILS_H_ | 107 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_DETAILS_H_ |
| OLD | NEW |