| 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_SYNC_GLUE_SESSION_MODEL_ASSOCIATOR_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SESSION_MODEL_ASSOCIATOR_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SESSION_MODEL_ASSOCIATOR_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SESSION_MODEL_ASSOCIATOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/format_macros.h" | 14 #include "base/format_macros.h" |
| 15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 16 #include "base/memory/scoped_vector.h" | 16 #include "base/memory/scoped_vector.h" |
| 17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| 18 #include "base/stringprintf.h" | 18 #include "base/stringprintf.h" |
| 19 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
| 20 #include "base/utf_string_conversions.h" | 20 #include "base/utf_string_conversions.h" |
| 21 #include "chrome/browser/sessions/session_id.h" | 21 #include "chrome/browser/sessions/session_id.h" |
| 22 #include "chrome/browser/sessions/session_service.h" | 22 #include "chrome/browser/sessions/session_service.h" |
| 23 #include "chrome/browser/sessions/session_types.h" | 23 #include "chrome/browser/sessions/session_types.h" |
| 24 #include "chrome/browser/sync/engine/syncapi.h" | 24 #include "chrome/browser/sync/glue/model_associator.h" |
| 25 #include "chrome/browser/sync/glue/synced_session_tracker.h" | 25 #include "chrome/browser/sync/glue/synced_session_tracker.h" |
| 26 #include "chrome/browser/sync/glue/synced_tab_delegate.h" | 26 #include "chrome/browser/sync/glue/synced_tab_delegate.h" |
| 27 #include "chrome/browser/sync/glue/synced_window_delegate.h" | 27 #include "chrome/browser/sync/glue/synced_window_delegate.h" |
| 28 #include "chrome/browser/sync/glue/model_associator.h" | |
| 29 #include "chrome/browser/sync/protocol/session_specifics.pb.h" | 28 #include "chrome/browser/sync/protocol/session_specifics.pb.h" |
| 30 #include "chrome/browser/sync/syncable/model_type.h" | 29 #include "chrome/browser/sync/syncable/model_type.h" |
| 31 | 30 |
| 32 class Profile; | 31 class Profile; |
| 33 class ProfileSyncService; | 32 class ProfileSyncService; |
| 34 | 33 |
| 35 namespace sync_api { | 34 namespace sync_api { |
| 35 class BaseTransaction; |
| 36 class ReadNode; | 36 class ReadNode; |
| 37 class WriteNode; | 37 class WriteNode; |
| 38 class WriteTransaction; | 38 class WriteTransaction; |
| 39 } // namespace sync_api | 39 } // namespace sync_api |
| 40 | 40 |
| 41 namespace sync_pb { | 41 namespace sync_pb { |
| 42 class SessionSpecifics; | 42 class SessionSpecifics; |
| 43 } // namespace sync_pb | 43 } // namespace sync_pb |
| 44 | 44 |
| 45 namespace browser_sync { | 45 namespace browser_sync { |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 // is made. | 423 // is made. |
| 424 bool waiting_for_change_; | 424 bool waiting_for_change_; |
| 425 ScopedRunnableMethodFactory<SessionModelAssociator> test_method_factory_; | 425 ScopedRunnableMethodFactory<SessionModelAssociator> test_method_factory_; |
| 426 | 426 |
| 427 DISALLOW_COPY_AND_ASSIGN(SessionModelAssociator); | 427 DISALLOW_COPY_AND_ASSIGN(SessionModelAssociator); |
| 428 }; | 428 }; |
| 429 | 429 |
| 430 } // namespace browser_sync | 430 } // namespace browser_sync |
| 431 | 431 |
| 432 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_MODEL_ASSOCIATOR_H_ | 432 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_MODEL_ASSOCIATOR_H_ |
| OLD | NEW |