| 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 CHROME_BROWSER_RLZ_RLZ_H_ | 5 #ifndef CHROME_BROWSER_RLZ_RLZ_H_ |
| 6 #define CHROME_BROWSER_RLZ_RLZ_H_ | 6 #define CHROME_BROWSER_RLZ_RLZ_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 // This method is public for use by the Singleton class. | 60 // This method is public for use by the Singleton class. |
| 61 static RLZTracker* GetInstance(); | 61 static RLZTracker* GetInstance(); |
| 62 | 62 |
| 63 // The following methods are made protected so that they can be used for | 63 // The following methods are made protected so that they can be used for |
| 64 // testing purposes. Production code should never need to call these. | 64 // testing purposes. Production code should never need to call these. |
| 65 protected: | 65 protected: |
| 66 RLZTracker(); | 66 RLZTracker(); |
| 67 ~RLZTracker(); | 67 ~RLZTracker(); |
| 68 | 68 |
| 69 // This is a temporary constant used here until the home page change is | |
| 70 // committed, which will happen before 2011-09-01. This constant will be | |
| 71 // replaced with PageTransition::HOME_PAGE. | |
| 72 static const int RLZ_PAGETRANSITION_HOME_PAGE = 0x02000000; | |
| 73 | |
| 74 // Thread function entry point, see ScheduleFinancialPing(). Assumes argument | 69 // Thread function entry point, see ScheduleFinancialPing(). Assumes argument |
| 75 // is a pointer to an RLZTracker. | 70 // is a pointer to an RLZTracker. |
| 76 static void _cdecl PingNow(void* tracker); | 71 static void _cdecl PingNow(void* tracker); |
| 77 | 72 |
| 78 // Performs initialization of RLZ tracker that is purposefully delayed so | 73 // Performs initialization of RLZ tracker that is purposefully delayed so |
| 79 // that it does not interfere with chrome startup time. | 74 // that it does not interfere with chrome startup time. |
| 80 virtual void DelayedInit(); | 75 virtual void DelayedInit(); |
| 81 | 76 |
| 82 // NotificationObserver implementation: | 77 // NotificationObserver implementation: |
| 83 virtual void Observe(int type, | 78 virtual void Observe(int type, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 DISALLOW_COPY_AND_ASSIGN(RLZTracker); | 150 DISALLOW_COPY_AND_ASSIGN(RLZTracker); |
| 156 }; | 151 }; |
| 157 | 152 |
| 158 // The RLZTracker is a singleton object that outlives any runnable tasks | 153 // The RLZTracker is a singleton object that outlives any runnable tasks |
| 159 // that will be queued up. | 154 // that will be queued up. |
| 160 DISABLE_RUNNABLE_METHOD_REFCOUNT(RLZTracker); | 155 DISABLE_RUNNABLE_METHOD_REFCOUNT(RLZTracker); |
| 161 | 156 |
| 162 #endif // defined(OS_WIN) | 157 #endif // defined(OS_WIN) |
| 163 | 158 |
| 164 #endif // CHROME_BROWSER_RLZ_RLZ_H_ | 159 #endif // CHROME_BROWSER_RLZ_RLZ_H_ |
| OLD | NEW |