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

Side by Side Diff: components/sync_sessions/synced_session_tracker.h

Issue 2461463002: [Sync] Replacing NULL with nullptr/null throughout sync code. (Closed)
Patch Set: Reverted PROFILE_nullptr mistake. Created 4 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
« no previous file with comments | « components/sync_sessions/sync_sessions_metrics.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_TRACKER_H_ 5 #ifndef COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_TRACKER_H_
6 #define COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_TRACKER_H_ 6 #define COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_TRACKER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // - Returns false. 60 // - Returns false.
61 bool LookupSessionWindows( 61 bool LookupSessionWindows(
62 const std::string& session_tag, 62 const std::string& session_tag,
63 std::vector<const sessions::SessionWindow*>* windows) const; 63 std::vector<const sessions::SessionWindow*>* windows) const;
64 64
65 // Attempts to look up the tab associated with the given tag and tab id. 65 // Attempts to look up the tab associated with the given tag and tab id.
66 // Ownership of the SessionTab remains within the SyncedSessionTracker. 66 // Ownership of the SessionTab remains within the SyncedSessionTracker.
67 // If lookup succeeds: 67 // If lookup succeeds:
68 // - Sets tab to point to the SessionTab, and returns true. 68 // - Sets tab to point to the SessionTab, and returns true.
69 // Else 69 // Else
70 // - Returns false, tab is set to NULL. 70 // - Returns false, tab is set to null.
71 bool LookupSessionTab(const std::string& session_tag, 71 bool LookupSessionTab(const std::string& session_tag,
72 SessionID::id_type tab_id, 72 SessionID::id_type tab_id,
73 const sessions::SessionTab** tab) const; 73 const sessions::SessionTab** tab) const;
74 74
75 // Allows retrieval of existing data for the local session. Unlike GetSession 75 // Allows retrieval of existing data for the local session. Unlike GetSession
76 // this won't create-if-not-present. 76 // this won't create-if-not-present.
77 bool LookupLocalSession(const SyncedSession** output) const; 77 bool LookupLocalSession(const SyncedSession** output) const;
78 78
79 // Returns a pointer to the SyncedSession object associated with 79 // Returns a pointer to the SyncedSession object associated with
80 // |session_tag|. If none exists, creates one. Ownership of the 80 // |session_tag|. If none exists, creates one. Ownership of the
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // The tag for this machine's local session, so we can distinguish the foreign 202 // The tag for this machine's local session, so we can distinguish the foreign
203 // sessions. 203 // sessions.
204 std::string local_session_tag_; 204 std::string local_session_tag_;
205 205
206 DISALLOW_COPY_AND_ASSIGN(SyncedSessionTracker); 206 DISALLOW_COPY_AND_ASSIGN(SyncedSessionTracker);
207 }; 207 };
208 208
209 } // namespace sync_sessions 209 } // namespace sync_sessions
210 210
211 #endif // COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_TRACKER_H_ 211 #endif // COMPONENTS_SYNC_SESSIONS_SYNCED_SESSION_TRACKER_H_
OLDNEW
« no previous file with comments | « components/sync_sessions/sync_sessions_metrics.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698