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

Unified Diff: android_webview/native/permission/simple_permission_request.h

Issue 2863233002: [WebView] Move files from native to browser (Closed)
Patch Set: Created 3 years, 7 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: android_webview/native/permission/simple_permission_request.h
diff --git a/android_webview/native/permission/simple_permission_request.h b/android_webview/native/permission/simple_permission_request.h
deleted file mode 100644
index e1fe00db0e1fc291c6227920c6fbace622b67222..0000000000000000000000000000000000000000
--- a/android_webview/native/permission/simple_permission_request.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 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 ANDROID_WEBVIEW_NATIVE_PERMISSION_SIMPLE_PERMISSION_REQUEST_H
-#define ANDROID_WEBVIEW_NATIVE_PERMISSION_SIMPLE_PERMISSION_REQUEST_H
-
-#include <stdint.h>
-
-#include "android_webview/native/permission/aw_permission_request_delegate.h"
-#include "base/callback.h"
-#include "base/macros.h"
-
-namespace android_webview {
-
-// The class is used to handle the simple permission request which just needs
-// a callback with bool parameter to indicate the permission granted or not.
-class SimplePermissionRequest : public AwPermissionRequestDelegate {
- public:
- SimplePermissionRequest(const GURL& origin,
- int64_t resources,
- const base::Callback<void(bool)>& callback);
- ~SimplePermissionRequest() override;
-
- // AwPermissionRequestDelegate implementation.
- const GURL& GetOrigin() override;
- int64_t GetResources() override;
- void NotifyRequestResult(bool allowed) override;
-
- private:
- const GURL origin_;
- int64_t resources_;
- const base::Callback<void(bool)> callback_;
-
- DISALLOW_COPY_AND_ASSIGN(SimplePermissionRequest);
-};
-
-} // namespace android_webview
-
-#endif // ANDROID_WEBVIEW_NATIVE_PERMISSION_PROTECTED_MEDIA_ID_PERMISSION_REQUEST_H

Powered by Google App Engine
This is Rietveld 408576698