Index: content/public/browser/devtools_frontend_host_delegate.h |
diff --git a/content/public/browser/devtools_frontend_window_delegate.h b/content/public/browser/devtools_frontend_host_delegate.h |
similarity index 57% |
rename from content/public/browser/devtools_frontend_window_delegate.h |
rename to content/public/browser/devtools_frontend_host_delegate.h |
index 06463eeb88e58bc6c15f66e4a0b94d0690720202..b645bf11ec44ff21a99f22cc95c3abc48b079bae 100644 |
--- a/content/public/browser/devtools_frontend_window_delegate.h |
+++ b/content/public/browser/devtools_frontend_host_delegate.h |
@@ -2,27 +2,20 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_DELEGATE_H_ |
-#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_DELEGATE_H_ |
+#ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ |
+#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ |
#pragma once |
#include <string> |
-namespace IPC { |
-class Message; |
-} |
- |
namespace content { |
// Clients that want to use default DevTools front-end implementation should |
// implement this interface to provide access to the embedding browser from |
// the front-end. |
-class DevToolsFrontendWindowDelegate { |
+class DevToolsFrontendHostDelegate { |
public: |
- virtual ~DevToolsFrontendWindowDelegate() {} |
- |
- // Routes message to the corresponding agent. |
- virtual void ForwardToDevToolsAgent(const IPC::Message& message) = 0; |
+ virtual ~DevToolsFrontendHostDelegate() {} |
// Should bring DevTools window to front. |
virtual void ActivateWindow() = 0; |
@@ -43,8 +36,21 @@ class DevToolsFrontendWindowDelegate { |
// Shows "Save As..." dialog to save |content|. |
virtual void SaveToFile(const std::string& suggested_file_name, |
const std::string& content) = 0; |
+ |
+ |
+ // This method is called when tab inspected by this devtools frontend is |
+ // closing. |
+ virtual void InspectedTabClosing() = 0; |
+ |
+ // This method is called when tab inspected by this devtools frontend is |
+ // navigating to |url|. |
+ virtual void FrameNavigating(const std::string& url) = 0; |
+ |
+ // Invoked when tab inspected by this devtools frontend is replaced by |
+ // another tab. This is triggered by TabStripModel::ReplaceTabContentsAt. |
+ virtual void TabReplaced(TabContents* new_tab) = 0; |
}; |
} // namespace content |
-#endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_DELEGATE_H_ |
+#endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ |