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

Side by Side Diff: chrome/browser/sync/glue/session_model_associator.h

Issue 11414013: Depend on stored sync session GUID for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
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 #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 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 // Returns true if this tab belongs to this profile and belongs to a window, 466 // Returns true if this tab belongs to this profile and belongs to a window,
467 // false otherwise. 467 // false otherwise.
468 bool IsValidTab(const SyncedTabDelegate& tab) const; 468 bool IsValidTab(const SyncedTabDelegate& tab) const;
469 469
470 // Having a valid entry is defined as the url being valid and and having a 470 // Having a valid entry is defined as the url being valid and and having a
471 // syncable scheme (non chrome:// and file:// url's). In other words, we don't 471 // syncable scheme (non chrome:// and file:// url's). In other words, we don't
472 // want to sync a tab that is nothing but chrome:// and file:// navigations or 472 // want to sync a tab that is nothing but chrome:// and file:// navigations or
473 // invalid url's. 473 // invalid url's.
474 bool TabHasValidEntry(const SyncedTabDelegate& tab) const; 474 bool TabHasValidEntry(const SyncedTabDelegate& tab) const;
475 475
476 // Given a transaction, returns the GUID-based string that should be used for
477 // |current_machine_tag_|.
478 std::string GetMachineTagFromTransaction(syncer::WriteTransaction* trans);
Nicolas Zea 2012/11/16 18:55:20 this can be an anon namespace method in the cc fil
nyquist 2012/12/04 01:55:05 Done.
479
476 // For testing only. 480 // For testing only.
477 size_t NumFaviconsForTesting() const; 481 size_t NumFaviconsForTesting() const;
478 482
479 // For testing only. 483 // For testing only.
480 void QuitLoopForSubtleTesting(); 484 void QuitLoopForSubtleTesting();
481 485
482 // Unique client tag. 486 // Unique client tag.
483 std::string current_machine_tag_; 487 std::string current_machine_tag_;
484 488
485 // User-visible machine name. 489 // User-visible machine name.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 std::map<std::string, linked_ptr<SyncedFaviconInfo> > synced_favicons_; 553 std::map<std::string, linked_ptr<SyncedFaviconInfo> > synced_favicons_;
550 // Map of page URL -> favicon url. 554 // Map of page URL -> favicon url.
551 std::map<std::string, std::string> synced_favicon_pages_; 555 std::map<std::string, std::string> synced_favicon_pages_;
552 556
553 DISALLOW_COPY_AND_ASSIGN(SessionModelAssociator); 557 DISALLOW_COPY_AND_ASSIGN(SessionModelAssociator);
554 }; 558 };
555 559
556 } // namespace browser_sync 560 } // namespace browser_sync
557 561
558 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_MODEL_ASSOCIATOR_H_ 562 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_MODEL_ASSOCIATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698