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

Unified Diff: chrome/browser/ui/tab_contents/core_tab_helper_delegate.h

Issue 8865004: Create CoreTabHelper, move remaining core TCW functionality into it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lots of helpers now Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/tab_contents/core_tab_helper_delegate.h
diff --git a/chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h b/chrome/browser/ui/tab_contents/core_tab_helper_delegate.h
similarity index 52%
rename from chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h
rename to chrome/browser/ui/tab_contents/core_tab_helper_delegate.h
index 86924d22479aeaf0561c4418ad0c7baea1643d56..1ff76df08e82b50eceaeca51ba393e7222695843 100644
--- a/chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h
+++ b/chrome/browser/ui/tab_contents/core_tab_helper_delegate.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_DELEGATE_H_
-#define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_DELEGATE_H_
+#ifndef CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_DELEGATE_H_
+#define CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_DELEGATE_H_
#pragma once
#include "base/basictypes.h"
@@ -12,13 +12,17 @@ class TabContentsWrapper;
// Objects implement this interface to get notified about changes in the
// TabContentsWrapper and to provide necessary functionality.
-class TabContentsWrapperDelegate {
+//
+// This is considered part of the TabContentsWrapper "core" interface. If a
+// piece of code interacts with TabContentWrappers, it is guaranteed that it
+// will need to handle all of these callbacks.
+class CoreTabHelperDelegate {
public:
virtual void SwapTabContents(TabContentsWrapper* old_tc,
TabContentsWrapper* new_tc) = 0;
protected:
- virtual ~TabContentsWrapperDelegate();
+ virtual ~CoreTabHelperDelegate();
};
-#endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_DELEGATE_H_
+#endif // CHROME_BROWSER_UI_TAB_CONTENTS_CORE_TAB_HELPER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698