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

Unified Diff: content/public/browser/devtools_frontend_host_delegate.h

Issue 8549022: Define DevTools content API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam's comments addressed Created 9 years, 1 month 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
« no previous file with comments | « content/public/browser/devtools_client_host.h ('k') | content/public/browser/devtools_frontend_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « content/public/browser/devtools_client_host.h ('k') | content/public/browser/devtools_frontend_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698