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

Unified Diff: chrome/common/extensions/webview_handler.h

Issue 134643011: Move webview and web_accessible_resources manifest handlers to src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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/webview_handler.h
diff --git a/chrome/common/extensions/webview_handler.h b/chrome/common/extensions/webview_handler.h
deleted file mode 100644
index 2c4858f8f6371fb5a1e1d94dad67a82e697c0658..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/webview_handler.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2013 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_WEBVIEW_HANDLER_H_
-#define CHROME_COMMON_EXTENSIONS_WEBVIEW_HANDLER_H_
-
-#include <string>
-
-#include "extensions/common/extension.h"
-#include "extensions/common/manifest_handler.h"
-
-namespace extensions {
-
-// A structure to hold the <webview> accessible extension resources
-// that may be specified in the manifest of an extension using the
-// "webview" key.
-struct WebviewInfo : public Extension::ManifestData {
- // Define out of line constructor/destructor to please Clang.
- WebviewInfo();
- virtual ~WebviewInfo();
-
- // Returns true if the specified resource is web accessible.
- static bool IsResourceWebviewAccessible(const Extension* extension,
- const std::string& partition_id,
- const std::string& relative_path);
-
- // Returns true when 'webview_accessible_resources' are defined for the
- // app.
- static bool HasWebviewAccessibleResources(const Extension* extension);
-
- // Optional list of webview accessible extension resources.
- std::vector<std::string> webview_privileged_partitions_;
- URLPatternSet webview_accessible_resources_;
-};
-
-// Parses the "webview" manifest key.
-class WebviewHandler : public ManifestHandler {
- public:
- WebviewHandler();
- virtual ~WebviewHandler();
-
- virtual bool Parse(Extension* extension, base::string16* error) OVERRIDE;
-
- private:
- virtual const std::vector<std::string> Keys() const OVERRIDE;
-
- DISALLOW_COPY_AND_ASSIGN(WebviewHandler);
-};
-
-} // namespace extensions
-
-#endif // CHROME_COMMON_EXTENSIONS_WEBVIEW_HANDLER_H_
« no previous file with comments | « chrome/common/extensions/web_accessible_resources_handler.cc ('k') | chrome/common/extensions/webview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698