Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: sync/sessions/sync_session_context.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/sessions/sync_session.cc ('k') | sync/sessions/sync_session_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // SyncSessionContext encapsulates the contextual information and engine 5 // SyncSessionContext encapsulates the contextual information and engine
6 // components specific to a SyncSession. A context is accessible via 6 // components specific to a SyncSession. A context is accessible via
7 // a SyncSession so that session SyncerCommands and parts of the engine have 7 // a SyncSession so that session SyncerCommands and parts of the engine have
8 // a convenient way to access other parts. In this way it can be thought of as 8 // a convenient way to access other parts. In this way it can be thought of as
9 // the surrounding environment for the SyncSession. The components of this 9 // the surrounding environment for the SyncSession. The components of this
10 // environment are either valid or not valid for the entire context lifetime, 10 // environment are either valid or not valid for the entire context lifetime,
11 // or they are valid for explicitly scoped periods of time by using Scoped 11 // or they are valid for explicitly scoped periods of time by using Scoped
12 // installation utilities found below. This means that the context assumes no 12 // installation utilities found below. This means that the context assumes no
13 // ownership whatsoever of any object that was not created by the context 13 // ownership whatsoever of any object that was not created by the context
14 // itself. 14 // itself.
15 // 15 //
16 // It can only be used from the SyncerThread. 16 // It can only be used from the SyncerThread.
17 17
18 #ifndef CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_ 18 #ifndef SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_
19 #define CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_ 19 #define SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_
20 #pragma once 20 #pragma once
21 21
22 #include <map> 22 #include <map>
23 #include <string> 23 #include <string>
24 24
25 #include "base/gtest_prod_util.h" 25 #include "base/gtest_prod_util.h"
26 #include "base/memory/scoped_ptr.h" 26 #include "base/memory/scoped_ptr.h"
27 #include "base/time.h" 27 #include "base/time.h"
28 #include "chrome/browser/sync/engine/model_safe_worker.h" 28 #include "sync/engine/model_safe_worker.h"
29 #include "chrome/browser/sync/engine/syncer_types.h" 29 #include "sync/engine/syncer_types.h"
30 #include "chrome/browser/sync/sessions/debug_info_getter.h" 30 #include "sync/sessions/debug_info_getter.h"
31 31
32 namespace syncable { 32 namespace syncable {
33 class Directory; 33 class Directory;
34 } 34 }
35 35
36 namespace browser_sync { 36 namespace browser_sync {
37 37
38 class ConflictResolver; 38 class ConflictResolver;
39 class ExtensionsActivityMonitor; 39 class ExtensionsActivityMonitor;
40 class ModelSafeWorkerRegistrar; 40 class ModelSafeWorkerRegistrar;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 } 198 }
199 private: 199 private:
200 SyncSessionContext* context_; 200 SyncSessionContext* context_;
201 ConflictResolver* resolver_; 201 ConflictResolver* resolver_;
202 DISALLOW_COPY_AND_ASSIGN(ScopedSessionContextConflictResolver); 202 DISALLOW_COPY_AND_ASSIGN(ScopedSessionContextConflictResolver);
203 }; 203 };
204 204
205 } // namespace sessions 205 } // namespace sessions
206 } // namespace browser_sync 206 } // namespace browser_sync
207 207
208 #endif // CHROME_BROWSER_SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_ 208 #endif // SYNC_SESSIONS_SYNC_SESSION_CONTEXT_H_
OLDNEW
« no previous file with comments | « sync/sessions/sync_session.cc ('k') | sync/sessions/sync_session_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698