/external/chromium_org/chrome/browser/sync/glue/ |
D | synced_session_tracker.cc | 52 const std::string& session_tag, in LookupSessionWindows() argument 56 SyncedSessionMap::const_iterator iter = synced_session_map_.find(session_tag); in LookupSessionWindows() 91 const std::string& session_tag, std::set<int>* tab_node_ids) { in LookupTabNodeIds() argument 94 synced_tab_map_.find(session_tag); in LookupTabNodeIds() 108 const std::string& session_tag) { in GetSession() argument 110 if (synced_session_map_.find(session_tag) != in GetSession() 112 synced_session = synced_session_map_[session_tag]; in GetSession() 115 DVLOG(1) << "Creating new session with tag " << session_tag << " at " in GetSession() 117 synced_session->session_tag = session_tag; in GetSession() 118 synced_session_map_[session_tag] = synced_session; in GetSession() [all …]
|
D | synced_session_tracker.h | 49 bool LookupSessionWindows(const std::string& session_tag, 58 bool LookupSessionTab(const std::string& session_tag, 65 SyncedSession* GetSession(const std::string& session_tag); 69 bool DeleteSession(const std::string& session_tag); 79 void ResetSessionTracking(const std::string& session_tag); 84 void CleanupSession(const std::string& session_tag); 91 void PutWindowInSession(const std::string& session_tag, 99 void PutTabInWindow(const std::string& session_tag, 108 SessionTab* GetTab(const std::string& session_tag, 122 bool LookupTabNodeIds(const std::string& session_tag, [all …]
|
D | session_model_associator.cc | 82 std::string GetClientIdFromSessionTag(const std::string& session_tag) { in GetClientIdFromSessionTag() argument 83 if (session_tag.find_first_of(SessionTagPrefix()) == std::string::npos) { in GetClientIdFromSessionTag() 88 std::string client_id = session_tag.substr( in GetClientIdFromSessionTag() 90 session_tag.length()); in GetClientIdFromSessionTag() 718 const std::string& session_tag) { in GetDeviceInfoForSessionTag() argument 719 std::string client_id = GetClientIdFromSessionTag(session_tag); in GetDeviceInfoForSessionTag() 749 if (specifics.session_tag().empty() || in UpdateAssociationsFromSyncModel() 755 } else if (specifics.session_tag() != GetCurrentMachineTag()) { in UpdateAssociationsFromSyncModel() 787 std::string foreign_session_tag = specifics.session_tag(); in AssociateForeignSpecifics() 903 const std::string& session_tag, in PopulateSessionWindowFromSpecifics() argument [all …]
|
D | session_change_processor.cc | 233 if (specifics.session_tag() == local_tag) { in ApplyChangesFromSyncModel() 245 specifics.session_tag()); in ApplyChangesFromSyncModel() 265 if (specifics.session_tag() == local_tag && in ApplyChangesFromSyncModel()
|
D | synced_session.h | 44 std::string session_tag; member
|
D | synced_session.cc | 14 SyncedSession::SyncedSession() : session_tag("invalid"), in SyncedSession()
|
D | session_sync_test_helper.cc | 53 ASSERT_EQ(tag, session.session_tag); in VerifySyncedSession()
|
/external/chromium_org/chrome/browser/extensions/api/sessions/ |
D | session_id.cc | 16 std::string session_tag; in Parse() local 21 session_tag = session_id.substr(0, separator); in Parse() 28 session_tag.empty() ? session_id : session_id.substr(separator + 1), in Parse() 32 return make_scoped_ptr(new SessionId(session_tag, id)); in Parse() 35 SessionId::SessionId(const std::string& session_tag, int id) in SessionId() argument 36 : session_tag_(session_tag), id_(id) { in SessionId()
|
D | sessions_api.h | 53 scoped_ptr<api::tabs::Tab> CreateTabModel(const std::string& session_tag, 59 const std::string& session_tag); 62 const std::string& session_tag);
|
D | session_id.h | 28 SessionId(const std::string& session_tag, int id); 37 const std::string& session_tag() const { return session_tag_; } in session_tag() function
|
D | sessions_api.cc | 226 const std::string& session_tag, in CreateTabModel() argument 230 std::string session_id = SessionId(session_tag, tab.tab_id.id()).ToString(); in CreateTabModel() 241 const SessionWindow& window, const std::string& session_tag) { in CreateWindowModel() argument 266 CreateTabModel(session_tag, *window.tabs[i], i, in CreateWindowModel() 271 SessionId(session_tag, window.window_id.id()).ToString(); in CreateWindowModel() 318 const SessionWindow& window, const std::string& session_tag) { in CreateSessionModel() argument 320 CreateWindowModel(window, session_tag)); in CreateSessionModel() 344 *it->second, session->session_tag)); in CreateDeviceModel() 515 if (open_tabs->GetForeignTab(session_id.session_tag(), in RestoreForeignSession() 530 if (!open_tabs->GetForeignSession(session_id.session_tag(), &windows)) { in RestoreForeignSession()
|
/external/chromium_org/chrome/browser/ui/webui/ntp/ |
D | foreign_session_handler.cc | 251 const std::string& session_tag = session->session_tag; in HandleGetForeignSessions() local 253 session_data->SetString("tag", session_tag); in HandleGetForeignSessions() 259 bool is_collapsed = collapsed_sessions->HasKey(session_tag); in HandleGetForeignSessions() 262 current_collapsed_sessions->SetBoolean(session_tag, true); in HandleGetForeignSessions() 337 std::string session_tag; in HandleDeleteForeignSession() local 338 if (!args->GetString(0, &session_tag)) { in HandleDeleteForeignSession() 345 open_tabs->DeleteForeignSession(session_tag); in HandleDeleteForeignSession() 356 std::string session_tag; in HandleSetForeignSessionCollapsed() local 357 if (!args->GetString(0, &session_tag)) { in HandleSetForeignSessionCollapsed() 373 update.Get()->SetBoolean(session_tag, true); in HandleSetForeignSessionCollapsed() [all …]
|
/external/chromium_org/chrome/browser/android/ |
D | new_tab_page_prefs.cc | 75 jstring session_tag) { in GetForeignSessionCollapsed() argument 78 return dict && dict->HasKey(ConvertJavaStringToUTF8(env, session_tag)); in GetForeignSessionCollapsed() 83 jstring session_tag, in SetForeignSessionCollapsed() argument 90 update.Get()->SetBoolean(ConvertJavaStringToUTF8(env, session_tag), true); in SetForeignSessionCollapsed() 92 update.Get()->Remove(ConvertJavaStringToUTF8(env, session_tag), NULL); in SetForeignSessionCollapsed()
|
D | foreign_session_helper.cc | 230 const bool is_collapsed = collapsed_sessions->HasKey(session.session_tag); in GetForeignSessions() 233 pref_collapsed_sessions->SetBoolean(session.session_tag, true); in GetForeignSessions() 239 ConvertUTF8ToJavaString(env, session.session_tag).Release(), in GetForeignSessions() 253 jstring session_tag, in OpenForeignSessionTab() argument 264 if (!open_tabs->GetForeignTab(ConvertJavaStringToUTF8(env, session_tag), in OpenForeignSessionTab() 293 jstring session_tag) { in DeleteForeignSession() argument 296 open_tabs->DeleteForeignSession(ConvertJavaStringToUTF8(env, session_tag)); in DeleteForeignSession()
|
D | new_tab_page_prefs.h | 34 jstring session_tag); 36 jstring session_tag,
|
D | foreign_session_helper.h | 34 jstring session_tag, 37 void DeleteForeignSession(JNIEnv* env, jobject obj, jstring session_tag);
|
/external/chromium_org/chrome/browser/ui/toolbar/ |
D | recent_tabs_sub_menu_model.cc | 143 TabNavigationItem(const std::string& session_tag, in TabNavigationItem() 147 : session_tag(session_tag), in TabNavigationItem() 158 std::string session_tag; member 280 if (item.session_tag.empty()) { // Restore tab of local session. in ExecuteCommand() 292 if (!open_tabs->GetForeignTab(item.session_tag, item.tab_id, &tab)) in ExecuteCommand() 443 const std::string& session_tag = session->session_tag; in BuildTabsFromOtherDevices() local 447 if (!open_tabs->GetForeignSession(session_tag, &windows) || in BuildTabsFromOtherDevices() 489 BuildOtherDevicesTabItem(session_tag, *tabs_in_session[k]); in BuildTabsFromOtherDevices() 536 const std::string& session_tag, in BuildOtherDevicesTabItem() argument 540 TabNavigationItem item(session_tag, tab.tab_id.id(), in BuildOtherDevicesTabItem()
|
D | recent_tabs_sub_menu_model.h | 100 void BuildOtherDevicesTabItem(const std::string& session_tag,
|
/external/chromium_org/chrome/browser/sync/sessions2/ |
D | sessions_sync_manager.cc | 425 if (current_machine_tag() == session.session_tag()) { in ProcessSyncChanges() 437 DisassociateForeignSession(session.session_tag()); in ProcessSyncChanges() 442 if (current_machine_tag() == session.session_tag()) { in ProcessSyncChanges() 495 if (specifics.session_tag().empty() || in InitFromSyncModel() 501 } else if (specifics.session_tag() != current_machine_tag()) { in InitFromSyncModel() 531 std::string foreign_session_tag = specifics.session_tag(); in UpdateTrackerWithForeignSession() 648 const std::string& session_tag, in BuildSyncedSessionFromSpecifics() argument 668 session_tracker_.PutTabInWindow(session_tag, in BuildSyncedSessionFromSpecifics() 920 std::string session_tag = session->session_tag; in DoGarbageCollection() local 924 DVLOG(1) << "Found stale session " << session_tag in DoGarbageCollection() [all …]
|
D | sessions_sync_manager_unittest.cc | 542 EXPECT_EQ(manager()->current_machine_tag(), specifics.session_tag()); in TEST_F() 554 EXPECT_EQ(manager()->current_machine_tag(), specifics2.session_tag()); in TEST_F() 650 EXPECT_EQ(manager()->current_machine_tag(), specifics.session_tag()); in TEST_F() 664 EXPECT_EQ(manager()->current_machine_tag(), specifics.session_tag()); in TEST_F() 676 EXPECT_EQ(manager()->current_machine_tag(), specifics2.session_tag()); in TEST_F() 1013 out[0].sync_data().GetSpecifics().session().session_tag()); in TEST_F() 1019 out[1].sync_data().GetSpecifics().session().session_tag()); in TEST_F() 1028 EXPECT_EQ(manager()->current_machine_tag(), specifics.session_tag()); in TEST_F() 1073 EXPECT_EQ(manager()->current_machine_tag(), specifics.session_tag()); in TEST_F() 1152 EXPECT_EQ(manager()->current_machine_tag(), specifics.session_tag()); in TEST_F() [all …]
|
/external/chromium_org/chrome/browser/sync/test/integration/ |
D | two_client_sessions_sync_test.cc | 179 DeleteForeignSession(1, sessions1[0]->session_tag); in IN_PROC_BROWSER_TEST_F() 204 DeleteForeignSession(1, sessions1[0]->session_tag); in IN_PROC_BROWSER_TEST_F()
|
D | sessions_helper.h | 120 void DeleteForeignSession(int index, std::string session_tag);
|
D | sessions_helper.cc | 317 void DeleteForeignSession(int index, std::string session_tag) { in DeleteForeignSession() argument 320 GetSessionModelAssociatorDeprecated()->DeleteForeignSession(session_tag); in DeleteForeignSession()
|
/external/chromium/chrome/browser/sync/glue/ |
D | session_change_processor.cc | 185 specifics.session_tag()); in ApplyChangesFromSyncModel() 203 if (specifics.session_tag() == in ApplyChangesFromSyncModel()
|
/external/chromium/chrome/browser/sync/protocol/ |
D | session_specifics.proto | 21 optional string session_tag = 1; field
|