| 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_COMMON_PAGE_TRANSITION_TYPES_H_ | 5 #ifndef CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ |
| 6 #define CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ | 6 #define CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "content/common/content_export.h" |
| 10 | 11 |
| 11 // This class is for scoping only. | 12 // This class is for scoping only. |
| 12 class PageTransition { | 13 class CONTENT_EXPORT PageTransition { |
| 13 public: | 14 public: |
| 14 // Types of transitions between pages. These are stored in the history | 15 // Types of transitions between pages. These are stored in the history |
| 15 // database to separate visits, and are reported by the renderer for page | 16 // database to separate visits, and are reported by the renderer for page |
| 16 // navigations. | 17 // navigations. |
| 17 // | 18 // |
| 18 // WARNING: don't change these numbers. They are written directly into the | 19 // WARNING: don't change these numbers. They are written directly into the |
| 19 // history database, so future versions will need the same values to match | 20 // history database, so future versions will need the same values to match |
| 20 // the enums. | 21 // the enums. |
| 21 // | 22 // |
| 22 // A type is made of a core value and a set of qualifiers. A type has one | 23 // A type is made of a core value and a set of qualifiers. A type has one |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // Return the qualifier | 163 // Return the qualifier |
| 163 static int32 GetQualifier(Type type) { | 164 static int32 GetQualifier(Type type) { |
| 164 return type & QUALIFIER_MASK; | 165 return type & QUALIFIER_MASK; |
| 165 } | 166 } |
| 166 | 167 |
| 167 // Return a string version of the core type values. | 168 // Return a string version of the core type values. |
| 168 static const char* CoreTransitionString(Type type); | 169 static const char* CoreTransitionString(Type type); |
| 169 }; | 170 }; |
| 170 | 171 |
| 171 #endif // CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ | 172 #endif // CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ |
| OLD | NEW |