OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CONTENT_CONTENT_LIVE_TAB_H_ | 5 #ifndef COMPONENTS_SESSIONS_CONTENT_CONTENT_LIVE_TAB_H_ |
6 #define COMPONENTS_SESSIONS_CONTENT_CONTENT_LIVE_TAB_H_ | 6 #define COMPONENTS_SESSIONS_CONTENT_CONTENT_LIVE_TAB_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/supports_user_data.h" | 9 #include "base/supports_user_data.h" |
10 #include "components/sessions/content/content_serialized_navigation_builder.h" | 10 #include "components/sessions/content/content_serialized_navigation_builder.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 : public LiveTab, | 28 : public LiveTab, |
29 public base::SupportsUserData::Data { | 29 public base::SupportsUserData::Data { |
30 public: | 30 public: |
31 ~ContentLiveTab() override; | 31 ~ContentLiveTab() override; |
32 | 32 |
33 // Returns the ContentLiveTab associated with |web_contents|, creating it if | 33 // Returns the ContentLiveTab associated with |web_contents|, creating it if |
34 // it has not already been created. | 34 // it has not already been created. |
35 static ContentLiveTab* GetForWebContents(content::WebContents* web_contents); | 35 static ContentLiveTab* GetForWebContents(content::WebContents* web_contents); |
36 | 36 |
37 // LiveTab: | 37 // LiveTab: |
38 bool IsInitialNavigation() override; | 38 bool IsInitialBlankNavigation() override; |
39 int GetCurrentEntryIndex() override; | 39 int GetCurrentEntryIndex() override; |
40 int GetPendingEntryIndex() override; | 40 int GetPendingEntryIndex() override; |
41 sessions::SerializedNavigationEntry GetEntryAtIndex(int index) override; | 41 sessions::SerializedNavigationEntry GetEntryAtIndex(int index) override; |
42 sessions::SerializedNavigationEntry GetPendingEntry() override; | 42 sessions::SerializedNavigationEntry GetPendingEntry() override; |
43 int GetEntryCount() override; | 43 int GetEntryCount() override; |
44 scoped_ptr<PlatformSpecificTabData> GetPlatformSpecificTabData() override; | 44 scoped_ptr<PlatformSpecificTabData> GetPlatformSpecificTabData() override; |
45 void LoadIfNecessary() override; | 45 void LoadIfNecessary() override; |
46 const std::string& GetUserAgentOverride() const override; | 46 const std::string& GetUserAgentOverride() const override; |
47 | 47 |
48 content::WebContents* web_contents() { return web_contents_; } | 48 content::WebContents* web_contents() { return web_contents_; } |
(...skipping 10 matching lines...) Expand all Loading... |
59 } | 59 } |
60 | 60 |
61 content::WebContents* web_contents_; | 61 content::WebContents* web_contents_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(ContentLiveTab); | 63 DISALLOW_COPY_AND_ASSIGN(ContentLiveTab); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace sessions | 66 } // namespace sessions |
67 | 67 |
68 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_LIVE_TAB_H_ | 68 #endif // COMPONENTS_SESSIONS_CONTENT_CONTENT_LIVE_TAB_H_ |
OLD | NEW |