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

Side by Side Diff: components/sessions/core/live_tab.h

Issue 2727663004: Use TabLoader in TabRestoreService. (Closed)
Patch Set: Fix review notes: comments, namings etc. Created 3 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SESSIONS_CORE_LIVE_TAB_H_ 5 #ifndef COMPONENTS_SESSIONS_CORE_LIVE_TAB_H_
6 #define COMPONENTS_SESSIONS_CORE_LIVE_TAB_H_ 6 #define COMPONENTS_SESSIONS_CORE_LIVE_TAB_H_
7 7
8 #include "components/sessions/core/serialized_navigation_entry.h" 8 #include "components/sessions/core/serialized_navigation_entry.h"
9 #include "components/sessions/core/sessions_export.h" 9 #include "components/sessions/core/sessions_export.h"
10 #include "components/sessions/core/tab_restore_service.h" 10 #include "components/sessions/core/tab_restore_service.h"
(...skipping 14 matching lines...) Expand all
25 virtual int GetPendingEntryIndex() = 0; 25 virtual int GetPendingEntryIndex() = 0;
26 virtual SerializedNavigationEntry GetEntryAtIndex(int index) = 0; 26 virtual SerializedNavigationEntry GetEntryAtIndex(int index) = 0;
27 virtual SerializedNavigationEntry GetPendingEntry() = 0; 27 virtual SerializedNavigationEntry GetPendingEntry() = 0;
28 virtual int GetEntryCount() = 0; 28 virtual int GetEntryCount() = 0;
29 29
30 // Returns any platform-specific data that should be associated with the 30 // Returns any platform-specific data that should be associated with the
31 // TabRestoreService::Tab corresponding to this instance. The default 31 // TabRestoreService::Tab corresponding to this instance. The default
32 // implementation returns null. 32 // implementation returns null.
33 virtual std::unique_ptr<PlatformSpecificTabData> GetPlatformSpecificTabData(); 33 virtual std::unique_ptr<PlatformSpecificTabData> GetPlatformSpecificTabData();
34 34
35 // Loads the current page if necessary (where "necessary" is defined on a
36 // platform-specific basis).
37 virtual void LoadIfNecessary() = 0;
38
39 // Returns the user agent override, if any. 35 // Returns the user agent override, if any.
40 virtual const std::string& GetUserAgentOverride() const = 0; 36 virtual const std::string& GetUserAgentOverride() const = 0;
41 }; 37 };
42 38
43 } // namespace sessions 39 } // namespace sessions
44 40
45 #endif // COMPONENTS_SESSIONS_CORE_LIVE_TAB_H_ 41 #endif // COMPONENTS_SESSIONS_CORE_LIVE_TAB_H_
OLDNEW
« no previous file with comments | « components/sessions/content/content_live_tab.cc ('k') | components/sessions/core/tab_restore_service_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698