 Chromium Code Reviews
 Chromium Code Reviews Issue 14963002:
  sync: Report GetUpdate triggers to the server  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 14963002:
  sync: Report GetUpdate triggers to the server  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| Index: sync/sessions/sync_session.h | 
| diff --git a/sync/sessions/sync_session.h b/sync/sessions/sync_session.h | 
| index 763bd3bc47941101552755b9a3cb0388e8d34219..f05a996b8eab452769ba32d881cb572ff22e1b54 100644 | 
| --- a/sync/sessions/sync_session.h | 
| +++ b/sync/sessions/sync_session.h | 
| @@ -36,6 +36,8 @@ class ModelSafeWorker; | 
| namespace sessions { | 
| +class NudgeTracker; | 
| + | 
| class SYNC_EXPORT_PRIVATE SyncSession { | 
| public: | 
| // The Delegate services events that occur during the session requiring an | 
| @@ -93,6 +95,10 @@ class SYNC_EXPORT_PRIVATE SyncSession { | 
| SyncSession(SyncSessionContext* context, | 
| Delegate* delegate, | 
| const SyncSourceInfo& source); | 
| + SyncSession(SyncSessionContext* context, | 
| 
tim (not reviewing)
2013/05/06 21:29:04
Having factory methods with appropriate names that
 
rlarocque
2013/05/07 18:45:39
Done.  I couldn't think of a good name for the non
 | 
| + Delegate* delegate, | 
| + const SyncSourceInfo& source, | 
| + const NudgeTracker* nudge_tracker); | 
| ~SyncSession(); | 
| // Builds a thread-safe and read-only copy of the current session state. | 
| @@ -113,6 +119,8 @@ class SYNC_EXPORT_PRIVATE SyncSession { | 
| const SyncSourceInfo& source() const { return source_; } | 
| + const NudgeTracker* nudge_tracker() const { return nudge_tracker_; } | 
| + | 
| private: | 
| // The context for this session, guaranteed to outlive |this|. | 
| SyncSessionContext* const context_; | 
| @@ -126,6 +134,8 @@ class SYNC_EXPORT_PRIVATE SyncSession { | 
| // Our controller for various status and error counters. | 
| scoped_ptr<StatusController> status_controller_; | 
| + const NudgeTracker* nudge_tracker_; | 
| + | 
| DISALLOW_COPY_AND_ASSIGN(SyncSession); | 
| }; |