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

Unified Diff: content/public/browser/devtools/devtools_http_handler_delegate.h

Issue 8554008: Add content API for DevTools HTTP handler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Optimized includes 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
Index: content/public/browser/devtools/devtools_http_handler_delegate.h
diff --git a/content/public/browser/devtools/devtools_http_handler_delegate.h b/content/public/browser/devtools/devtools_http_handler_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..86867a56b14316fe4151b584623999072591c02d
--- /dev/null
+++ b/content/public/browser/devtools/devtools_http_handler_delegate.h
@@ -0,0 +1,47 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_
+#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_
+#pragma once
+
+#include <string>
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "content/common/content_export.h"
+
+class TabContents;
+
+namespace net {
+class URLRequestContext;
+}
+
+namespace content {
+
+class CONTENT_EXPORT DevToolsHttpHandlerDelegate {
jam 2011/11/21 19:26:56 ditto
yurys 2011/12/01 18:02:20 Done.
+ public:
+ typedef std::vector<TabContents*> InspectableTabs;
+ DevToolsHttpHandlerDelegate() {}
jam 2011/11/21 19:26:56 nit: not needed
yurys 2011/12/01 18:02:20 Done.
+ virtual ~DevToolsHttpHandlerDelegate() {}
+
+ // Should return the list of inspectable tabs. Called on the UI thread.
+ virtual InspectableTabs GetInspectableTabs() = 0;
+
+ // Should return discovery page HTML that should list available tabs
+ // and provide attach links. Called on the IO thread.
+ virtual std::string GetDiscoveryPageHTML() = 0;
+
+ // Should return URL request context for issuing requests against devtools
+ // webui or NULL if no context is available. Called on the IO thread.
+ virtual net::URLRequestContext* GetURLRequestContext() = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerDelegate);
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698