| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_PAGE_TRANSITION_TYPES_H__ | 5 #ifndef CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ |
| 6 #define CHROME_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 | 10 |
| 11 // This class is for scoping only. | 11 // This class is for scoping only. |
| 12 class PageTransition { | 12 class PageTransition { |
| 13 public: | 13 public: |
| 14 // Types of transitions between pages. These are stored in the history | 14 // Types of transitions between pages. These are stored in the history |
| 15 // database to separate visits, and are reported by the renderer for page | 15 // database to separate visits, and are reported by the renderer for page |
| 16 // navigations. | 16 // navigations. |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 // Return the qualifier | 156 // Return the qualifier |
| 157 static int32 GetQualifier(Type type) { | 157 static int32 GetQualifier(Type type) { |
| 158 return type & QUALIFIER_MASK; | 158 return type & QUALIFIER_MASK; |
| 159 } | 159 } |
| 160 | 160 |
| 161 // Return a string version of the core type values. | 161 // Return a string version of the core type values. |
| 162 static const char* CoreTransitionString(Type type); | 162 static const char* CoreTransitionString(Type type); |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 #endif // CHROME_COMMON_PAGE_TRANSITION_TYPES_H__ | 165 #endif // CONTENT_COMMON_PAGE_TRANSITION_TYPES_H_ |
| OLD | NEW |