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

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

Issue 9969208: TabContents -> WebContentsImpl, part 20. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 // Returns true on success, false if association failed. 386 // Returns true on success, false if association failed.
387 bool UpdateSyncModelDataFromClient(SyncError* error); 387 bool UpdateSyncModelDataFromClient(SyncError* error);
388 388
389 // Pulls the current sync model from the sync database and returns true upon 389 // Pulls the current sync model from the sync database and returns true upon
390 // update of the client model. Will associate any foreign sessions as well as 390 // update of the client model. Will associate any foreign sessions as well as
391 // keep track of any local tab nodes, adding them to our free tab node pool. 391 // keep track of any local tab nodes, adding them to our free tab node pool.
392 bool UpdateAssociationsFromSyncModel(const sync_api::ReadNode& root, 392 bool UpdateAssociationsFromSyncModel(const sync_api::ReadNode& root,
393 sync_api::WriteTransaction* trans, 393 sync_api::WriteTransaction* trans,
394 SyncError* error); 394 SyncError* error);
395 395
396 // Fills a tab sync node with data from a TabContents object. Updates 396 // Fills a tab sync node with data from a WebContents object. Updates
397 // |tab_link| with the current url if it's valid and triggers a favicon 397 // |tab_link| with the current url if it's valid and triggers a favicon
398 // load if the url has changed. 398 // load if the url has changed.
399 // Returns true on success, false if we need to reassociate due to corruption. 399 // Returns true on success, false if we need to reassociate due to corruption.
400 bool WriteTabContentsToSyncModel(TabLink* tab_link, 400 bool WriteTabContentsToSyncModel(TabLink* tab_link,
401 SyncError* error); 401 SyncError* error);
402 402
403 // Load the favicon for the tab specified by |tab_link|. Will cancel any 403 // Load the favicon for the tab specified by |tab_link|. Will cancel any
404 // outstanding request for this tab. OnFaviconDataAvailable(..) will be called 404 // outstanding request for this tab. OnFaviconDataAvailable(..) will be called
405 // when the load completes. 405 // when the load completes.
406 void LoadFaviconForTab(TabLink* tab_link); 406 void LoadFaviconForTab(TabLink* tab_link);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 // Used for loading favicons. For each outstanding favicon load, stores the 502 // Used for loading favicons. For each outstanding favicon load, stores the
503 // SessionID for the tab whose favicon is being set. 503 // SessionID for the tab whose favicon is being set.
504 CancelableRequestConsumerTSimple<SessionID::id_type> load_consumer_; 504 CancelableRequestConsumerTSimple<SessionID::id_type> load_consumer_;
505 505
506 DISALLOW_COPY_AND_ASSIGN(SessionModelAssociator); 506 DISALLOW_COPY_AND_ASSIGN(SessionModelAssociator);
507 }; 507 };
508 508
509 } // namespace browser_sync 509 } // namespace browser_sync
510 510
511 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_MODEL_ASSOCIATOR_H_ 511 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_MODEL_ASSOCIATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/speech/speech_recognition_bubble_controller.cc ('k') | chrome/browser/sync/glue/synced_tab_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698