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

Unified Diff: chrome/common/extensions/api/devtools/devtools_page_handler.h

Issue 11624036: Move the parsing of homepage_url" and "devtools_page" out of Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 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/common/extensions/api/devtools/devtools_page_handler.h
diff --git a/chrome/common/extensions/api/devtools/devtools_page_handler.h b/chrome/common/extensions/api/devtools/devtools_page_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..d083e79ff11793b1c1f9dfe86da57a2c5c3ec924
--- /dev/null
+++ b/chrome/common/extensions/api/devtools/devtools_page_handler.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2012 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 CHROME_COMMON_EXTENSIONS_API_DEVTOOLS_DEVTOOLS_PAGE_HANDLER_H_
+#define CHROME_COMMON_EXTENSIONS_API_DEVTOOLS_DEVTOOLS_PAGE_HANDLER_H_
+
+#include <string>
+
+#include "chrome/common/extensions/extension.h"
+#include "chrome/common/extensions/manifest_handler.h"
+
+namespace extensions {
+
+class Extension;
+
+struct DevtoolsPageInfo : public Extension::ManifestData {
+
+ // Optional URL to a devtools extension page.
+ GURL devtools_url_;
+
+ static const GURL devtools_url(const Extension* extension);
+};
+
+// Parses the "devtools_page" manifest key.
+class DevtoolsPageHandler : public ManifestHandler {
+ public:
+ DevtoolsPageHandler();
+ virtual ~DevtoolsPageHandler();
+
+ virtual bool Parse(const base::Value* value,
+ Extension* extension,
+ string16* error) OVERRIDE;
+};
+
+} // namespace extensions
+
+#endif // CHROME_COMMON_EXTENSIONS_API_DEVTOOLS_DEVTOOLS_PAGE_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698