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

Unified Diff: chrome/browser/sync/glue/synced_window_delegates_getter_android.h

Issue 1310373009: [Sync] Remove static methods on SyncedWindowDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android compile. Created 5 years, 4 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/glue/synced_window_delegates_getter_android.h
diff --git a/chrome/browser/sync/glue/synced_window_delegates_getter_android.h b/chrome/browser/sync/glue/synced_window_delegates_getter_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..00c17849cd7d15b020f635c470d23f40515a80ad
--- /dev/null
+++ b/chrome/browser/sync/glue/synced_window_delegates_getter_android.h
@@ -0,0 +1,29 @@
+// Copyright 2015 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_GLUE_SYNCED_WINDOW_DELEGATES_GETTER_ANDROID_H_
+#define CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATES_GETTER_ANDROID_H_
+
+#include <set>
+
+#include "base/macros.h"
+#include "chrome/browser/sync/sessions/synced_window_delegates_getter.h"
+
+namespace browser_sync {
+
+class SyncedWindowDelegate;
+
+class SyncedWindowDelegatesGetterAndroid : public SyncedWindowDelegatesGetter {
Nicolas Zea 2015/08/31 22:12:47 Add comment describing purpose of class.
maxbogue 2015/09/01 17:29:27 Done.
+ public:
+ SyncedWindowDelegatesGetterAndroid();
Nicolas Zea 2015/08/31 22:12:47 Needs a virtual destructor.
maxbogue 2015/09/01 17:29:27 Done.
+ std::set<const SyncedWindowDelegate*> GetSyncedWindowDelegates() override;
Nicolas Zea 2015/08/31 22:12:47 nit: newline above. Also, for consistency/clarity
maxbogue 2015/09/01 17:29:27 Done.
+ const SyncedWindowDelegate* FindById(SessionID::id_type id) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SyncedWindowDelegatesGetterAndroid);
+};
+
+} // namespace browser_sync
+
+#endif // CHROME_BROWSER_SYNC_GLUE_SYNCED_WINDOW_DELEGATES_GETTER_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698