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

Unified Diff: chrome/browser/sync/engine/syncer_thread_adapter.h

Issue 6874018: make new syncer thread the default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload before submit. Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/engine/syncer_thread_adapter.h
diff --git a/chrome/browser/sync/engine/syncer_thread_adapter.h b/chrome/browser/sync/engine/syncer_thread_adapter.h
deleted file mode 100644
index 6b234e999f1379f79b8576aa688545407a762f73..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/engine/syncer_thread_adapter.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-#ifndef CHROME_BROWSER_SYNC_ENGINE_SYNCER_THREAD_ADAPTER_H_
-#define CHROME_BROWSER_SYNC_ENGINE_SYNCER_THREAD_ADAPTER_H_
-#pragma once
-
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/tracked.h"
-#include "chrome/browser/sync/engine/net/server_connection_manager.h"
-#include "chrome/browser/sync/engine/syncer_thread.h"
-#include "chrome/browser/sync/engine/syncer_thread2.h"
-#include "chrome/browser/sync/sessions/sync_session_context.h"
-#include "chrome/browser/sync/syncable/model_type.h"
-#include "chrome/browser/sync/syncable/model_type_payload_map.h"
-
-namespace browser_sync {
-
-class SyncerThreadAdapter {
- public:
- SyncerThreadAdapter(sessions::SyncSessionContext* context,
- bool using_new_impl);
- ~SyncerThreadAdapter();
-
- // We mimic the SyncerThread interface (an adaptee).
- void WatchConnectionManager(ServerConnectionManager* conn_mgr);
- bool Start();
- bool Stop(int max_wait);
- bool RequestPause();
- bool RequestResume();
- void NudgeSyncer(int milliseconds_from_now,
- SyncerThread::NudgeSource source,
- const tracked_objects::Location& nudge_location);
- void NudgeSyncerWithDataTypes(
- int milliseconds_from_now,
- SyncerThread::NudgeSource source,
- const syncable::ModelTypeBitSet& model_types,
- const tracked_objects::Location& nudge_location);
- void NudgeSyncerWithPayloads(
- int milliseconds_from_now,
- SyncerThread::NudgeSource source,
- const syncable::ModelTypePayloadMap& model_types_with_payloads,
- const tracked_objects::Location& nudge_location);
- void SetNotificationsEnabled(bool enabled);
- void CreateSyncer(const std::string& dirname);
-
- // Expose the new impl to leverage new apis through the adapter.
- s3::SyncerThread* new_impl();
- private:
- scoped_refptr<SyncerThread> legacy_;
- scoped_ptr<s3::SyncerThread> new_impl_;
- bool using_new_impl_;
-
- DISALLOW_COPY_AND_ASSIGN(SyncerThreadAdapter);
-};
-
-} // namespace browser_sync
-
-#endif // CHROME_BROWSER_SYNC_ENGINE_SYNCER_THREAD_ADAPTER_H_
« no previous file with comments | « chrome/browser/sync/engine/syncer_thread2_whitebox_unittest.cc ('k') | chrome/browser/sync/engine/syncer_thread_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698