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

Unified Diff: extensions/browser/api/web_request/web_request_permissions_delegate.h

Issue 515563003: Remove dependency of chrome in WebRequestPermissions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: extensions/browser/api/web_request/web_request_permissions_delegate.h
diff --git a/extensions/browser/api/web_request/web_request_permissions_delegate.h b/extensions/browser/api/web_request/web_request_permissions_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..6a31b03aa5dd72b88799f0fd7bed08ff5deb7969
--- /dev/null
+++ b/extensions/browser/api/web_request/web_request_permissions_delegate.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2014 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 EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_PERMISSIONS_DELEGATE_H
+#define EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_PERMISSIONS_DELEGATE_H
+
+#include "extensions/browser/process_map.h"
+
+namespace extensions {
+
+class WebRequestPermissionsDelegate {
+ public:
+ WebRequestPermissionsDelegate();
+ virtual ~WebRequestPermissionsDelegate();
+
+ virtual bool IsUpdateURL(const GURL& url) = 0;
+ virtual bool ContainsWebStoreAppId(const ProcessMap& process_map,
+ int process_id) = 0;
+};
+
+} // nanespace extensions
+
+#endif //EXTENSIONS_BROWSER_API_WEB_REQUEST_WEB_REQUEST_PERMISSIONS_DELEGATE_H
+
+

Powered by Google App Engine
This is Rietveld 408576698