| 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "content/browser/tab_contents/navigation_entry.h" | 13 #include "content/browser/tab_contents/navigation_entry.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "content/public/browser/navigation_types.h" | 15 #include "content/public/browser/navigation_type.h" |
| 16 #include "content/public/common/page_transition_types.h" | 16 #include "content/public/common/page_transition_types.h" |
| 17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
| 18 #include "webkit/glue/window_open_disposition.h" | 18 #include "webkit/glue/window_open_disposition.h" |
| 19 | 19 |
| 20 class DownloadItem; | 20 class DownloadItem; |
| 21 class FilePath; | 21 class FilePath; |
| 22 class GURL; | 22 class GURL; |
| 23 class TabContents; | 23 class TabContents; |
| 24 struct ContextMenuParams; | 24 struct ContextMenuParams; |
| 25 struct NativeWebKeyboardEvent; | 25 struct NativeWebKeyboardEvent; |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 void Attach(TabContents* source); | 380 void Attach(TabContents* source); |
| 381 | 381 |
| 382 // Called when |this| is no longer the TabContentsDelegate for |source|. | 382 // Called when |this| is no longer the TabContentsDelegate for |source|. |
| 383 void Detach(TabContents* source); | 383 void Detach(TabContents* source); |
| 384 | 384 |
| 385 // The TabContents that this is currently a delegate for. | 385 // The TabContents that this is currently a delegate for. |
| 386 std::set<TabContents*> attached_contents_; | 386 std::set<TabContents*> attached_contents_; |
| 387 }; | 387 }; |
| 388 | 388 |
| 389 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 389 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |